@ironarachne/words
    Preparing search index...

    Function wordCount

    • This function accurately counts the words in a text block. Hyphenated words count as a single word.

      Parameters

      • text: string

        The text to process.

      Returns number

      The word count.