bnspell-cli 0.1.0

Command-line Bengali (Bangla) spell checker
bnspell-cli-0.1.0 is not a library.

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:dictionary writes packages/bengali-spell-checker/dictionary. Inside the repository, with no flag and no BNSPELL_DICT, bnspell walks up to that directory.
  • From npm: npm install bengali-spell-checker ships the same files in node_modules/bengali-spell-checker/dictionary.
bnspell check notes.txt
bnspell check --json --strict < notes.txt
bnspell suggest --dict /path/to/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.