https://github.com/oniani/spell
Peter Norvig's Spelling Corrector in Rust
https://github.com/oniani/spell
Last synced: 3 months ago
JSON representation
Peter Norvig's Spelling Corrector in Rust
- Host: GitHub
- URL: https://github.com/oniani/spell
- Owner: oniani
- License: mit
- Created: 2021-11-06T22:10:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T22:16:15.000Z (over 4 years ago)
- Last Synced: 2025-10-30T03:09:05.588Z (9 months ago)
- Language: Rust
- Size: 2.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spell
Peter Norvig's Spelling Corrector in Rust.
## Usage
```rust
use spell::SpellingCorrector;
fn main() -> Result<(), anyhow::Error> {
let sc = SpellingCorrector::new("data/big.txt")?;
let c = sc.correction("speling");
assert_eq!(c, "spelling");
Ok(())
}
```
## References
- [How to Write a Spelling Corrector](https://norvig.com/spell-correct.html)
## License
[MIT License](LICENSE)