For the CLI (cli-based/) approach:
A command-line tool for typing in QWERTY Braille and getting real-time spelling suggestions using a Trie-based search and custom dictionaries.
- Type in QWERTY Braille format
- Real-time spelling suggestions and autocorrect
- Fast Trie-based search
- Customizable dictionary
- Node.js (v16+ recommended)
- npm
cd cli-based
npm installnode index.jsFollow the on-screen instructions to type Braille and receive suggestions.
index.js: Main CLI entry pointbrailleMap.js: Braille character mappingsdictionary.json: Word dictionarylevenshtein.js: Levenshtein distance implementationtries.js: Trie data structure
You can add or modify words in dictionary.json to expand the autocorrect capabilities.
For the Web App (braille_typer/) approach:
A Next.js web application for QWERTY Braille typing with real-time spelling suggestions, powered by Trie-based search and custom dictionaries. Designed for accessibility and optimized for visually impaired users.
- QWERTY Braille typing interface
- Real-time spelling suggestions and autocorrect
- Trie-based fast search
- Custom word list (
public/word-list.txt) - Accessible and responsive UI
- Deployable on Vercel
- Node.js (v18+ recommended)
- npm
cd braille_typer
npm installnpm run devOpen http://localhost:3000 in your browser.
npm run build
npm startsrc/app/: Main Next.js app codesrc/components/: UI componentssrc/lib/: Core logic (Trie, suggestion engine, etc.)public/word-list.txt: Custom dictionary
Deploy easily on Vercel or any platform supporting Next.js.