pythainlp.soundex¶
The pythainlp.soundex
is soundex for thai.
Modules¶
-
pythainlp.soundex.
soundex
(text: str, engine: str = 'udom83') → str[source]¶ Thai Soundex
- Parameters
text (string) – word
engine (str) – soundex engine
- Parameters for engine
udom83 (default)
lk82
metasound
- Returns
soundex code
-
pythainlp.soundex.
lk82
(text: str) → str[source]¶ LK82 - It’s a Thai soundex rule.
- Parameters
text (str) – Thai word
- Returns
LK82 soundex
-
pythainlp.soundex.
udom83
(text: str) → str[source]¶ Thai soundex, using Udom83 system. Wannee Udompanich [Master Thesis, Chula (1983)]
- Parameters
text (str) – Thai word
- Returns
Udom83 soundex
-
pythainlp.soundex.
metasound
(text: str, length: int = 4) → str[source]¶ Thai MetaSound
- Parameters
- Returns
MetaSound for the text
- Example::
>>> from pythainlp.metasound import metasound >>> metasound("ลัก") 'ล100' >>> metasound("รัก") 'ร100' >>> metasound("รักษ์") 'ร100' >>> metasound("บูรณการ", 5)) 'บ5515'