An open API service indexing awesome lists of open source software.

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

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)