@ironarachne/words
    Preparing search index...

    Function quantify

    • Quantifies a word based on a count, optionally converting the number to words.

      Parameters

      • count: number

        The number of items.

      • singular: string

        The singular word.

      • Optionalplural: string

        Optional plural override.

      • OptionalasWords: boolean = false

        Whether to convert the number to text.

      Returns string

      The quantified phrase.