Skip to main content

check_controlled_language_with_morphology

Function check_controlled_language_with_morphology 

Source
pub fn check_controlled_language_with_morphology(
    source: &str,
    profile: &ControlledLanguageProfile,
    analyze_sentence: impl FnMut(&[ControlledLanguageWord<'_>]) -> Vec<Vec<ControlledLanguageAnalysis>>,
) -> Result<Vec<ControlledLanguageDiagnostic>, ControlledLanguageError>
Expand description

Checks text with caller-supplied readings, one list per input word. An empty list delegates that word to the profile.