{"id":16718705,"url":"https://github.com/planeshifter/spell-check","last_synced_at":"2025-09-07T11:34:44.421Z","repository":{"id":27427301,"uuid":"30905021","full_name":"Planeshifter/spell-check","owner":"Planeshifter","description":"simple spelling checker","archived":false,"fork":false,"pushed_at":"2015-05-20T02:50:38.000Z","size":1864,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T01:12:44.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Planeshifter.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-02-17T06:11:48.000Z","updated_at":"2015-04-26T17:48:22.000Z","dependencies_parsed_at":"2022-07-24T15:01:58.186Z","dependency_job_id":null,"html_url":"https://github.com/Planeshifter/spell-check","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/Planeshifter%2Fspell-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fspell-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fspell-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fspell-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Planeshifter","download_url":"https://codeload.github.com/Planeshifter/spell-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243715304,"owners_count":20335899,"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-10-12T21:38:12.777Z","updated_at":"2025-03-15T10:23:54.540Z","avatar_url":"https://github.com/Planeshifter.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Dependencies][dependencies-image]][dependencies-url]\n\n# spell-check\nsimple spelling checker\n\n## Introduction\n\nThe language model is constructed from the newspaper corpus of\n[http://www.corpora.heliohost.org/](http://www.corpora.heliohost.org/),\na collection of corpora for various languages freely available to download and\ncollected by Hans Christensen. Unigram counts were extracted and stored\nin a *sqlite* database for the spell-checker.  \n\n## API\n\n### spell( word [, callback] )\n\nGiven an input string consisting of a single `word`,\nthe `spell` function returns the most probable correction according\nto an error and language model. If no valid correction can be found,\nthe original argument is returned.\n\nThe function is asynchronous and either calls the `callback` function upon\ncompletion if the parameter is supplied or otherwise\nreturns a `Promise`.\n\n### Example:\n\n#### Callback Style\n\nJavaScript:\n```js\nspell(\"haert\", function(err, res){\n  console.log(res);\n});\n// returns: heart \n```\n\nCoffeeScript:\n```coffeescript\nspell(\"haert\", (err, res) -\u003e\n  console.log res\n)\n# returns: heart \n```\n\n#### Using Promises\n\nJavaScript:\n```js\nspell(\"lagauge\").then(function(res){\n  console.log(res);\n});\n// returns: language\n```\n\nCoffeeScript:\n```coffeescript\nspell(\"langauge\").then( (res) -\u003e console.log res )\n# returns: language\n```\n\n## Unit Tests\n\nRun tests via the command `npm test`\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT).\n\n[npm-image]: https://badge.fury.io/js/spell-check.svg\n[npm-url]: http://badge.fury.io/js/spell-check\n\n[travis-image]: https://travis-ci.org/Planeshifter/spell-check.svg\n[travis-url]: https://travis-ci.org/Planeshifter/spell-check\n\n[dependencies-image]: http://img.shields.io/david/Planeshifter/spell-check.svg\n[dependencies-url]: https://david-dm.org/Planeshifter/spell-check\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaneshifter%2Fspell-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplaneshifter%2Fspell-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaneshifter%2Fspell-check/lists"}