{"id":29261169,"url":"https://github.com/mjago/cw","last_synced_at":"2026-04-02T17:25:37.623Z","repository":{"id":32147450,"uuid":"35720347","full_name":"mjago/CW","owner":"mjago","description":"Morse Code Trainer:","archived":false,"fork":false,"pushed_at":"2018-02-05T11:44:59.000Z","size":14019,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T08:03:26.443Z","etag":null,"topics":["cw","cw-keyer","ruby"],"latest_commit_sha":null,"homepage":"martynjago.co.uk/CW/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjago.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-16T10:59:43.000Z","updated_at":"2024-01-25T22:00:10.000Z","dependencies_parsed_at":"2022-09-11T17:24:08.521Z","dependency_job_id":null,"html_url":"https://github.com/mjago/CW","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/mjago/CW","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjago%2FCW","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjago%2FCW/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjago%2FCW/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjago%2FCW/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjago","download_url":"https://codeload.github.com/mjago/CW/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjago%2FCW/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263472278,"owners_count":23471811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cw","cw-keyer","ruby"],"created_at":"2025-07-04T08:03:20.639Z","updated_at":"2026-04-02T17:25:37.588Z","avatar_url":"https://github.com/mjago.png","language":"Ruby","readme":"[![Join the chat at https://gitter.im/mjago/CW](https://badges.gitter.im/mjago/CW.svg)](https://gitter.im/mjago/CW?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Gem Version](https://badge.fury.io/rb/cw.svg)](https://badge.fury.io/rb/cw)\n[![Build Status](https://travis-ci.org/mjago/CW.svg?branch=master)](https://travis-ci.org/mjago/CW)\n[![Code Climate](https://codeclimate.com/github/mjago/CW/badges/gpa.svg)](https://codeclimate.com/github/mjago/CW)\n[![Dependency Status](https://gemnasium.com/badges/github.com/mjago/CW.svg)](https://gemnasium.com/github.com/mjago/CW)\n\n# Documentation:\n\n**[CW Documentation](http://mjago.github.io/CW/)**\n\n## CW\n\n**CW** is a program for learning and practicing Morse Code (CW). It is written in the form of a [DSL](https://en.wikipedia.org/wiki/Domain-specific_language/) in the [Ruby](https://www.ruby-lang.org/en/downloads/) language.\n\n**CW** can read _books_ (and remember where you are), _rss feeds_\n(your daily quotation for instance), common _phrases_, _QSO_ codes\netc, in addition to generating random words, letters, and numbers that\npossibly match some required pattern (i.e. words_beginning_with 'v').\n\n**CW** also allows for real-time progress marking by indicating\n  correct and incorrect characters and words copied in real-time. A\n  follow mode also exists which prints the output just after it has\n  played it (for `in head' practice).\n\n**CW** is thoroughly [documented](http://mjago.github.io/CW/), and includes a [hands-on tutorial](http://martynjago.co.uk/CW/mydoc_learning_the_alphabet/).\n\n# Installation:\n\n```sh\ngem install cw\ncw example.rb\n```\n\n### Note:\n\n - Requires Ruby 2+\n - Tested on OS X, and Linux. A Vagrantfile is available in the root directory.\n\n# Example CW Script\n\n```ruby\n\n# example.rb\n\nrequire 'cw'\n\ncw do\n  comment 'test single element letters'\n  wpm 15\n  load_alphabet :size, 1\n  shuffle\nend\n\ncw do\n  comment 'test 2 element letters'\n  wpm 15\n  load_alphabet :size, 2\n  shuffle\nend\n\ncw do\n  comment 'test less than 3 element letters'\n  wpm 15\n  load_alphabet :less_than, 3\n  shuffle\nend\n\ncw do\n  comment 'test 3 element letters'\n  wpm 15\n  load_alphabet :size, 3\n  shuffle\nend\n\ncw do\n  comment 'test less than 4 element letters'\n  wpm 15\n  load_alphabet :less_than, 4\n  shuffle\nend\n\ncw do\n  comment 'test 4 element letters'\n  wpm 15\n  load_alphabet :size, 4\n  shuffle\nend\n\ncw do\n  comment 'test alphabet vowels'\n  wpm 15\n  load_vowels\n  shuffle\nend\n\ncw do\n  comment 'test letters a..m'\n  wpm 18\n  load_alphabet(\"a\"..\"m\")\n  shuffle\nend\n\ncw do\n  comment 'test 8 words made with letters a..m - test by letter'\n  wpm 18\n  containing('a'..'m')\n  shuffle\n  word_count 8\nend\n\ncw do\n  comment 'test letters n..z'\n  wpm 18\n  load_letters('n'..'z')\n  shuffle\nend\n\ncw do\n  comment 'test 8 words made with letters n..z - test by word'\n  wpm 18\n  containing('n'..'z')\n  shuffle\n  word_count 8\n  test_words\nend\n\ncw do\n  comment 'test numbers'\n  wpm 20\n  load_numbers\n  shuffle\nend\n\ncw do\n  comment 'test alphabet - repeat until correct'\n  wpm 25\n  load_alphabet\n  shuffle\n  repeat_word\nend\n\ncw do\n  comment 'test 8 most common words no longer than 4 letters'\n  wpm 20\n  load_most_common_words\n  shuffle\n  no_longer_than 4\n  word_count 8\nend\n\ncw do\n  comment 'test 4 most common words no shorter than 4 letters'\n  wpm 20\n  load_most_common_words\n  shuffle\n  no_shorter_than 4\n  word_count 8\nend\n\ncw do\n  comment 'test 8 words including letter sequence \"ing\"'\n  shuffle\n  including('ing')\n  word_size 6\nend\n\ncw do\n  comment 'test 8 words having 6 letters - play each word twice'\n  shuffle\n  word_size 6\n  word_count 8\n  double_words\nend\n\ncw do\n  comment 'test 8 words beginning with \"qu\" - repeat whole sequence once'\n  wpm 20\n  shuffle\n  beginning_with 'qu'\n  word_count 8\n  repeat 1\nend\n\ncw do\n  comment 'test 8 words ending with \"tion\" - test by word'\n  wpm 15\n  shuffle\n  ending_with 'tion'\n  word_count 8\n  test_words\nend\n\ncw do\n  comment 'read one sentence of book'\n  wpm 20\n  read_book(sentences: 1)\nend\n\ncw do\n  comment 'read rss feed (quote of the day)'\n  wpm 18\n  read_rss(:quotation, 1)\nend\n\ncw do\n  comment 'test 6 common cw abbreviations'\n  wpm  15\n  load_abbreviations\n  shuffle\n  word_count 6\nend\n\ncw do\n  comment \"test 8 Q codes by ear (no keyboard test)\"\n  wpm  20\n  load_codes\n  shuffle\n  word_count 8\n  print_words\nend\n\ncw do\n  comment \"test 8 words by ear - reveal words at end of test\"\n  wpm  20\n  shuffle\n  word_count 8\n  reveal\nend\n\ncw do\n  comment \"reverse alphabet\"\n  wpm 20\n  load_alphabet\n  reverse\nend\n\ncw do\n  comment \"load my own word set\"\n  wpm 20\n  load_text(\"test/my_words.txt\")\n  shuffle\n  word_count 4\nend\n\n# See documentation for more details - and more commands.\n\nputs 'done'\n\n```\n\n# License\n\n[MIT License](https://raw.githubusercontent.com/mjago/CW/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjago%2Fcw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjago%2Fcw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjago%2Fcw/lists"}