• Intelligently split a string into sentences.

    Parameters

    • text: string

      Text to split into sentences.

    Returns string[]

    Throws

    Will throw an error if the input is not a string.

    Example

    splitSentences('Hello world. How are you?');
    //=> ['Hello world.', 'How are you?']

Generated using TypeDoc