bnspell
Command-line Bengali spell checker. cargo install bnspell-cli installs the bnspell binary.
The binary does not contain the word list. Point it at a directory of bn_BD.aff and bn_BD.dic with --dict or BNSPELL_DICT. Optional files in that directory are bn_BD.freq, bn_BD.variants, bn_BD.removals, bn_BD.names, and bn_BD.compounds.
Get the directory in either of these ways:
- From this repository:
pnpm --filter bengali-spell-checker build:dictionarywritespackages/bengali-spell-checker/dictionary. Inside the repository, with no flag and noBNSPELL_DICT,bnspellwalks up to that directory. - From npm:
npm install bengali-spell-checkerships the same files innode_modules/bengali-spell-checker/dictionary.
check reads a file, or stdin when the file is omitted or -. suggest prints one suggestion per line. --strict flags a widely used variant and suggests the Bangla Academy form.
eval and corpus score the dictionary. They expect this repository's layout (the package directory and its eval files), so they are for development rather than for a cargo install of the binary alone.
GPL-3.0-only. The word list itself is a separate GPL-2.0-or-later work and is not in the crate.