Expand description
§Email Spell Checker
A lightweight Rust library for checking email address misspellings and suggesting corrections.
§Features
- ⚡️ Lightning fast: Uses Sift3 algorithm for fast and accurate string distance calculation
- 🔋 Updated: Built-in popular domains and modern TLDs
- 🚀 Lightweight: Zero external dependencies (except optional serde)
- 💙 Type-safe: Written in Rust with strong type safety
- ⚙️ Extensible: Allows custom domains and configuration
- 🔨 Easy to use: Simple and intuitive API
§Basic Usage
use mailidator::Mailidator;
let checker = Mailidator::default();
let suggestion = checker.check("jorge@gmaik.co");
if let Some(suggestion) = suggestion {
println!("Did you mean: {}?", suggestion.full());
println!("Address: {}", suggestion.address());
println!("Domain: {}", suggestion.domain());
}Modules§
- domains
- Domain and TLD definitions for email spell checking
- sift3
- Implementation of the Sift3 string distance algorithm
Structs§
- Config
- Configuration for the email spell checker
- Mailidator
- The main email spell checker
- Suggestion
- Represents a suggested correction for a misspelled email address