{"id":16048957,"url":"https://github.com/devongovett/spellchecker.js","last_synced_at":"2025-09-07T02:37:41.090Z","repository":{"id":3557901,"uuid":"4619175","full_name":"devongovett/spellchecker.js","owner":"devongovett","description":"A spellchecker in CoffeeScript/JavaScript based on Hunspell","archived":false,"fork":false,"pushed_at":"2012-06-10T23:17:04.000Z","size":336,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T12:22:46.739Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devongovett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-10T23:05:07.000Z","updated_at":"2017-06-30T20:47:11.000Z","dependencies_parsed_at":"2022-07-28T21:19:06.058Z","dependency_job_id":null,"html_url":"https://github.com/devongovett/spellchecker.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devongovett/spellchecker.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fspellchecker.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fspellchecker.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fspellchecker.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fspellchecker.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devongovett","download_url":"https://codeload.github.com/devongovett/spellchecker.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fspellchecker.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268355821,"owners_count":24237371,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T00:11:40.319Z","updated_at":"2025-08-02T08:39:14.983Z","avatar_url":"https://github.com/devongovett.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"spellchecker.js\n===============\nA spellchecker in CoffeeScript/JavaScript based on [Hunspell](http://hunspell.sourceforge.net).\n\n## Usage\n\nYou can use spellchecker.js in browser and Node.js/CommonJS environments.  spellchecker.js requires a hunspell style\ndictionary, including the `.dic` and `.aff` files.  After reading them, you create a `SpellChecker` instance.  SpellCheckers\nhave two major methods: `check` and `suggest` for checking if a word is correctly spelled, and for making spelling suggestions \nfor a misspelled word.  Here's an example:\n\n```coffeescript\nfs = require 'fs'\nSpellChecker = require './spellchecker'\n\n# load the dictionary files\naff = fs.readFileSync('./en-us/en-us.aff', 'utf8')\ndic = fs.readFileSync('./en-us/en-us.dic', 'utf8')\n\n# create a SpellChecker\nchecker = new SpellChecker(aff, dic)\n\n# check if a word is spelled correctly\nchecker.check('spelling') # true\nchecker.check('speling')  # false\n\n# get spelling suggestions\nchecker.suggest('speling') # ['spelling', 'spline']\nchecker.suggest('lisence') # ['silence', 'license']\n```\n\n## Performance\n\nPerformance of checking words is generally very good, and suggestions are often fast as well depending on how badly the word\nis spelled.  Performance improvements are always welcome, however! :)\n\n## Licence\n\nspellchecker.js is released under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fspellchecker.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevongovett%2Fspellchecker.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fspellchecker.js/lists"}