{"id":23282524,"url":"https://github.com/n8brooks/snowball","last_synced_at":"2025-08-21T13:33:35.763Z","repository":{"id":43696865,"uuid":"462642781","full_name":"N8Brooks/snowball","owner":"N8Brooks","description":"⛄ Snowball stemmers for Deno.","archived":false,"fork":false,"pushed_at":"2022-05-31T20:01:21.000Z","size":1625,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-25T15:43:54.947Z","etag":null,"topics":["deno","languages","nlp","snowball","stopwords"],"latest_commit_sha":null,"homepage":"https://deno.land/x/snowball","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/N8Brooks.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":"2022-02-23T08:20:03.000Z","updated_at":"2024-03-06T15:44:09.000Z","dependencies_parsed_at":"2022-09-26T20:41:37.969Z","dependency_job_id":null,"html_url":"https://github.com/N8Brooks/snowball","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N8Brooks%2Fsnowball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N8Brooks%2Fsnowball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N8Brooks%2Fsnowball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N8Brooks%2Fsnowball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/N8Brooks","download_url":"https://codeload.github.com/N8Brooks/snowball/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230516252,"owners_count":18238371,"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":["deno","languages","nlp","snowball","stopwords"],"created_at":"2024-12-20T00:17:46.832Z","updated_at":"2024-12-20T00:17:47.365Z","avatar_url":"https://github.com/N8Brooks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snowball\n\n[Snowball](https://snowballstem.org/) stemmers for deno. These stemmers are\nbased on the compiled JavaScript stemmers from the\n[snowball project](https://github.com/snowballstem) version 2.2.0.\n\n## Usage\n\n### EnglishStemmer\n\nProvides the stem of the given word. Assumes that the input is lowercase.\n\n```ts\nimport { assertStrictEquals } from \"./test_deps.ts\";\nimport { EnglishStemmer } from \"https://deno.land/x/snowball/english_stemmer.ts\";\n\nconst englishStemmer = new EnglishStemmer();\n\nconst stem = englishStemmer.stem(\"enthusiastically\");\n\nassertStrictEquals(stem, \"enthusiast\");\n```\n\nHere is an example with multiple words.\n\n```ts\nimport { assertStrictEquals } from \"./test_deps.ts\";\nimport { EnglishStemmer } from \"https://deno.land/x/snowball/english_stemmer.ts\";\n\nconst sentence = \"the quick brown fox jumped over the lazy dog\";\n\nconst englishStemmer = new EnglishStemmer();\n\nconst stemmedSentence = sentence\n  .match(/\\b\\w\\w+\\b/gu)! // matches two or more word characters\n  .map((token) =\u003e englishStemmer.stem(token))\n  .join(\" \");\n\nassertStrictEquals(\n  stemmedSentence,\n  \"the quick brown fox jump over the lazi dog\",\n);\n```\n\n### RussianStemmer\n\nMany languages are supported\n\n```ts\nimport { assertStrictEquals } from \"./test_deps.ts\";\nimport { RussianStemmer } from \"https://deno.land/x/snowball/russian_stemmer.ts\";\n\nconst sentence = \"обязательно выпейте свой овалтин\";\n\nconst russianStemmer = new RussianStemmer();\n\nconst stemmedSentence = sentence\n  .split(/\\s+/u)\n  .map((token) =\u003e russianStemmer.stem(token))\n  .join(\" \");\n\nassertStrictEquals(\n  stemmedSentence,\n  \"обязательн вып сво овалтин\",\n);\n```\n\n### LanguageStemmers\n\nThere is an `Object` containing all available languages and stemmers defined in\n`mod.ts`.\n\n```ts\nimport { assertStrictEquals } from \"https://deno.land/std@0.126.0/testing/asserts.ts\";\nimport { LanguageStemmers } from \"https://deno.land/x/snowball/mod.ts\";\n\nconst spanishStemmer = new LanguageStemmers[\"Spanish\"]();\n\nassertStrictEquals(\n  spanishStemmer.stem(\"gracias\"),\n  \"graci\",\n);\n```\n\n## Supported Languages\n\n\u003c!-- deno-fmt-ignore --\u003e\nUnless specified, there is only one stemmer available called\n***Language***Stemmer which is exported from ***language***_stemmer.ts and\nmod.ts. Replace ***language*** with the desired language respecting the hinted\ncapitalization.\n\n1. Arabic\n1. Armenian\n1. Basque\n1. Catalan\n1. Danish\n1. Dutch\n   1. DutchStemmer\n   1. KraaijPohlmannStemmer\n1. English\n   1. EnglishStemmer - Porter 2 or snowball algorithm\n   1. PorterStemmer - Porter 1 stemmer\n   1. LovinsStemmer - The first published stemming algorithm\n1. Finnish\n1. French\n1. German\n   1. GermanStemmer\n   1. German2Stemmer\n1. Greek\n1. Hindi\n1. Hungarian\n1. Indonesian\n1. Irish\n1. Italian\n1. Lithuanian\n1. Nepali\n1. Norwegian\n1. Protugese\n1. Romanian\n1. Russian\n1. Serbian\n1. Spanish\n1. Swedish\n1. Tamil\n1. Turkish\n1. Yiddish\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn8brooks%2Fsnowball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn8brooks%2Fsnowball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn8brooks%2Fsnowball/lists"}