UNPKG

@sit-sandbox/thai-bad-words

Version:

A package to detect bad words in Thai language.

10 lines (8 loc) 178 B
export class TrieNode { children: Map<string, TrieNode>; isEndOfWord: boolean; constructor() { this.children = new Map(); this.isEndOfWord = false; } }