UNPKG
@sit-sandbox/thai-bad-words
Version:
latest (1.1.9)
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.2
1.0.4
1.0.3
1.0.2
A package to detect bad words in Thai language.
github.com/SIT-SandBox/thai-bad-words
@sit-sandbox/thai-bad-words
/
src
/
trie
/
TrieNode.ts
10 lines
(8 loc)
•
178 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
class
TrieNode
{
children
:
Map
<
string
,
TrieNode
>;
isEndOfWord
:
boolean
;
constructor
(
) {
this
.
children
=
new
Map
();
this
.
isEndOfWord
=
false
; } }