@willwade/aac-processors
    Preparing search index...

    Interface LanguageResources

    Language-specific resources, injected by the caller. Providing none leaves the language-specific measures unavailable (with explicit warnings) — the semantic measure still works for any language.

    interface LanguageResources {
        classifyInflection?: (word: string) => InflectionCategory;
        closedClassWords?: Set<string>;
    }
    Index

    Properties

    classifyInflection?: (word: string) => InflectionCategory

    Maps a lowercased word to an inflection category for morphological diversity.

    closedClassWords?: Set<string>

    Closed-class words (prepositions, conjunctions, ...) for syntactic diversity.