Zimanyar API
Preparing search index...
core/src
SimpleLexicon
Class SimpleLexicon
An in-memory lexicon, for tests and small word lists.
Implements
LexiconLike
Index
Constructors
constructor
Methods
add
freq
gender
Of
has
pos
Of
Constructors
constructor
new
SimpleLexicon
()
:
SimpleLexicon
Returns
SimpleLexicon
Methods
add
add
(
lemma
:
string
,
pos
?:
string
|
null
,
gender
?:
string
|
null
,
frequency
?:
number
,
)
:
void
Parameters
lemma
:
string
pos
:
string
|
null
= null
gender
:
string
|
null
= null
Optional
frequency
:
number
Returns
void
freq
freq
(
word
:
string
)
:
number
Parameters
word
:
string
Returns
number
gender
Of
genderOf
(
word
:
string
)
:
string
|
null
Parameters
word
:
string
Returns
string
|
null
has
has
(
word
:
string
)
:
boolean
Parameters
word
:
string
Returns
boolean
pos
Of
posOf
(
word
:
string
)
:
ReadonlySet
<
string
>
Parameters
word
:
string
Returns
ReadonlySet
<
string
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
freq
gender
Of
has
pos
Of
Zimanyar API
Loading...
An in-memory lexicon, for tests and small word lists.