Functions

f
getTag(words: string[]): string | undefined

Extracts the tag value from a sentence (array of words)

f
hasTag(words: string[]): boolean

Checks if a sentence has a tag

f
hasTagValue(
words: string[],
tag: string
): boolean

Checks if a sentence has a specific tag value

f
withoutTag(words: string[]): string[]

Removes the tag from a sentence

f
withTag(
words: string[],
tag: string
): string[]

Adds or replaces a tag in a sentence