a9ebcc488db9c635c5524de2ba56cee569e91552,pythainlp/transliterate/royin.py,,romanize,#Any#,165

Before Change


    res = _RE_CONSONANT.findall(word2)

    // 2-character word, all consonants
    if len(word2) == 2 and len(res) == 2:
        word2 = list(word2)
        word2.insert(1, "o")
        word2 = "".join(word2)

    word2 = _replace_consonants(word2, res)
    
    return word2

After Change




def romanize(text: str) -> str:
    words = word_tokenize(text)
    romanized_words = [_romanize(word) for word in words]

    return "".join(romanized_words)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PyThaiNLP/pythainlp
Commit Name: a9ebcc488db9c635c5524de2ba56cee569e91552
Time: 2019-04-17
Author: arthit@gmail.com
File Name: pythainlp/transliterate/royin.py
Class Name:
Method Name: romanize


Project Name: tyarkoni/pliers
Commit Name: 621fecf03cf409c4b379aa310e0c518bb6f6e9cd
Time: 2020-02-07
Author: rbrrcc@gmail.com
File Name: pliers/filters/text.py
Class Name: WordStemmingFilter
Method Name: _filter


Project Name: PyThaiNLP/lexicon-thai
Commit Name: b731f24a9f6a2f5547ebd6e642004adeacbe18da
Time: 2017-08-16
Author: wannaphong@yahoo.com
File Name: ข้อความ/build_pythainlp.py
Class Name:
Method Name: