{"id":25961708,"url":"https://github.com/ttab/elephant-spell","last_synced_at":"2025-08-02T05:42:03.364Z","repository":{"id":259860179,"uuid":"870670593","full_name":"ttab/elephant-spell","owner":"ttab","description":"Spelling service for the elephant","archived":false,"fork":false,"pushed_at":"2025-05-10T11:42:15.000Z","size":10048,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-10T12:32:51.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ttab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-10T13:09:03.000Z","updated_at":"2025-05-10T11:40:45.000Z","dependencies_parsed_at":"2025-05-10T12:37:55.825Z","dependency_job_id":null,"html_url":"https://github.com/ttab/elephant-spell","commit_stats":null,"previous_names":["ttab/elephant-spell"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ttab/elephant-spell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Felephant-spell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Felephant-spell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Felephant-spell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Felephant-spell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttab","download_url":"https://codeload.github.com/ttab/elephant-spell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Felephant-spell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268339403,"owners_count":24234546,"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":"2025-03-04T19:41:03.666Z","updated_at":"2025-08-02T05:42:03.333Z","avatar_url":"https://github.com/ttab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elephant spell\n\nElephant spell is a spellcheck service based on hunspell.\n\n## Custom dictionary support\n\nRegister words or phrases in the custom dictionary using the Dictionary API:\n\n``` json\nPOST twirp/elephant.spell.Dictionaries/SetEntry\n\n{\n  \"entry\": {\n    \"language\": \"sv-se\",\n    \"text\": \"Belarus\",\n    \"status\": \"approved\",\n    \"description\": \"Vitryssland var det gamla namnet på Belarus\",\n    \"common_mistakes\": [\n        \"Vitryssland\"\n    ]\n  }\n}\n```\n\nThe custom dictionary can be used both to add previously unknown words, and to encourage the replacement of words that doesn't follow your language guidelines.\n\nThen you can call the spellcheck method:\n\n``` json\nPOST twirp/elephant.spell.Check/Text\n\n{\n  \"language\": \"sv-se\",\n  \"text\": [\n    \"Detta är text som är rätstavad, nej, jag menar rätsstavad!\",\n    \"Vitryssland är ett land i Europa.\"\n  ]\n}\n```\n\n...and get corrections using both the built in Swedish dictionary and your custom dictionary:\n\n``` json\n{\n  \"misspelled\": [\n    {\n      \"entries\": [\n        {\n          \"text\": \"rätstavad\",\n          \"suggestions\": [\n            {\n              \"text\": \"rättstavad\"\n            }\n          ]\n        },\n        {\n          \"text\": \"rätsstavad\",\n          \"suggestions\": [\n            {\n              \"text\": \"rättstavad\"\n            },\n            {\n              \"text\": \"lättstavad\"\n            },\n            {\n              \"text\": \"rättsstat\"\n            },\n            {\n              \"text\": \"vadarstav\"\n            },\n            {\n              \"text\": \"stadsrätt\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"entries\": [\n        {\n          \"text\": \"Vitryssland\",\n          \"suggestions\": [\n            {\n              \"text\": \"Belarus\",\n              \"description\": \"Vitryssland var det gamla namnet på Belarus\"\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n```\n\n## Supported languages\n\nWe currently bundle the following dictionaries:\n\n* British English\n* Danish\n* Finnish\n* Norwegian Bokmål\n* Norwegian Nynorsk\n* Swedish\n* US English\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttab%2Felephant-spell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttab%2Felephant-spell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttab%2Felephant-spell/lists"}