pub fn analyze_word(word: &str) -> Option<WordAnalysis>Expand description
Smart word analysis with derivational morphology support.
Three-step resolution:
- Exact Match - Check if word exists in lexicon (handles irregulars like “mice”)
- Plural Derivation - Strip ‘s’/‘es’ and check if stem exists (farmers → farmer)
- Morphological Rules - Apply suffix rules for unknown agentive nouns