withTag(words: string[],tag: string): string[]
Adds or replaces a tag in a sentence
Creates a new word array with the specified tag. If a tag already exists, it is removed first before adding the new one.
withTag(words: string[],tag: string): string[]
Adds or replaces a tag in a sentence
Creates a new word array with the specified tag. If a tag already exists, it is removed first before adding the new one.
import { withTag } from "utils/tag.ts";