Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "nlp/expand-contractions/docs/types/index.d"

Index

Functions

Functions

Export assignment expandContractions

  • expandContractions(str: string): string
  • Expands all contractions to their formal equivalents.

    Parameters

    • str: string

      string to convert

    Returns string

    string with expanded contractions

    Example

    var str = 'I won\'t be able to get y\'all out of this one.';
    var out = expandContractions( str );
    // returns 'I will not be able to get you all out of this one.'

    Example

    var str = 'It oughtn\'t to be my fault, because, you know, I didn\'t know';
    var out = expandContractions( str );
    // returns 'It ought not to be my fault, because, you know, I did not know'