{"id":19951759,"url":"https://github.com/eacaps/asym-challenge-2","last_synced_at":"2026-05-09T22:02:58.235Z","repository":{"id":42354125,"uuid":"116321042","full_name":"eacaps/asym-challenge-2","owner":"eacaps","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-09T01:28:14.000Z","size":54,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T09:42:04.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eacaps.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":"2018-01-05T00:24:44.000Z","updated_at":"2021-07-29T04:12:49.000Z","dependencies_parsed_at":"2022-09-13T00:10:53.939Z","dependency_job_id":null,"html_url":"https://github.com/eacaps/asym-challenge-2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eacaps%2Fasym-challenge-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eacaps%2Fasym-challenge-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eacaps%2Fasym-challenge-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eacaps%2Fasym-challenge-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eacaps","download_url":"https://codeload.github.com/eacaps/asym-challenge-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381645,"owners_count":19953751,"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":[],"created_at":"2024-11-13T01:09:37.366Z","updated_at":"2025-11-26T22:05:12.409Z","avatar_url":"https://github.com/eacaps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asym-challenge-2 - Mobile Device Keyboard\n\nThis is an implementation of a Mobile Device Keyboard in javascript using typescript.\n\n## Running\nRunning this sample requires git and a relatively recent version of node and npm.\n\n    $ git clone git@github.com:eacaps/asym-challenge-2.git\n    $ cd asym-challenge-2\n    $ npm ci\n    $ npm run main\n\nThe command prompt accepts the commands train, input or exit.\n\ntrain: begins a prompt for a training passage  \ninput: begins a prompt for a fragment lookup  \nexit: exits the program\n\n## Sample output\n\n    eacaps$ node -v\n    v14.16.0\n    eacaps$ npm -v\n    6.14.11\n    eacaps$ npm run main\n\n    \u003e challenge@2.0.0 main C:\\Users\\eacap\\workspace\\asym\\asym-challenge-2\n    \u003e ts-node src/main.ts\n\n    prompt: [t]rain, [i]nput or [e]xit:  (exit) t\n    prompt: enter a training message:  The third thing that I need to tell you is that this thing does not think thoroughly.\n    train:The third thing that I need to tell you is that this thing does not think thoroughly.\n    prompt: [t]rain, [i]nput or [e]xit:  (exit) i\n    prompt: enter an input:  thi\n    input:thi\n    [\n      Candidate { word: 'thing', confidence: 2 },\n      Candidate { word: 'think', confidence: 1 },\n      Candidate { word: 'third', confidence: 1 },\n      Candidate { word: 'this', confidence: 1 }\n    ]\n    prompt: [t]rain, [i]nput or [e]xit:  (exit) i\n    prompt: enter an input:  nee\n    input:nee\n    [ Candidate { word: 'need', confidence: 1 } ]\n    prompt: [t]rain, [i]nput or [e]xit:  (exit) i\n    prompt: enter an input:  th\n    input:th\n    [\n      Candidate { word: 'that', confidence: 2 },\n      Candidate { word: 'thing', confidence: 2 },\n      Candidate { word: 'the', confidence: 1 },\n      Candidate { word: 'think', confidence: 1 },\n      Candidate { word: 'third', confidence: 1 },\n      Candidate { word: 'this', confidence: 1 },\n      Candidate { word: 'thoroughly', confidence: 1 }\n    ]\n    prompt: [t]rain, [i]nput or [e]xit:  (exit)\n    good bye\n\n\n## Testing\nI approached this from a test driven development methodology and have a couple specs that I used to ensure the behavior was consistent. You can run the specs with the following command:\n\n    $ npm run test\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feacaps%2Fasym-challenge-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feacaps%2Fasym-challenge-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feacaps%2Fasym-challenge-2/lists"}