• Checks if a string could be referring to a role.

    Parameters

    • text: string

      Text to check.

    • role: Role

      Role to check.

    • caseSensitive: boolean = false

      Makes checking by name case sensitive.

    • wholeWord: boolean = false

      Makes checking by name match full word only.

    Returns boolean