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(): boolean
words: string[],
tag: string
Checks if a sentence has a specific tag value
f
withoutTag(words: string[]): string[]
Removes the tag from a sentence
f
withTag(): string[]
words: string[],
tag: string
Adds or replaces a tag in a sentence
Usage
import * as mod from "utils/tag.ts";