kaven-basic - v6.0.0
    Preparing search index...

    Function CapitalizeSentences

    • Capitalizes the first letter of each sentence in the given string. Sentences are determined by the delimiters: period (.), exclamation mark (!), and question mark (?). Each sentence will have its first character capitalized and the rest converted to lowercase. Leading spaces after sentence delimiters are trimmed.

      Parameters

      • sentences: string

        The input string containing one or more sentences.

      Returns string

      A new string with each sentence capitalized appropriately.

      4.0.0

      2025-06-26