@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function termFrequencies

    • Count term frequencies for one document, with the title weighted by TITLE_BOOST. Returns a map in insertion order; callers sort where order matters.

      Parameters

      • fields: { body?: string; extra?: string[]; title?: string }

      Returns Map<string, number>