Skip to main content

stripDiacriticsFromCharacter

Callable

  • stripDiacriticsFromCharacter(character: string, gagEffect: number, capitalize: boolean): string

  • Helper method to strip diacritics from characters.


    Parameters

    • character: string

      character that needs to be stripped.

    • gagEffect: number

      The current gag effect level.

    • capitalize: boolean

      Whether to returned character should be capitalized or not

    Returns string

    • character that being stripped after garbling.