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

Before Change



def romanize(word: str) -> str:
    if not isinstance(word, str) or not word:
        return ""

    word2 = _replace_vowels(_normalize(word))
    res = _RE_CONSONANT.findall(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: PyThaiNLP/pythainlp
Commit Name: ad47e955fc7b5b424cebb77f3ee7fae568c62e9d
Time: 2017-10-07
Author: wannaphong@yahoo.com
File Name: pythainlp/romanization/__init__.py
Class Name:
Method Name: romanization


Project Name: PyThaiNLP/pythainlp
Commit Name: b02ef8acd214121e0fb511bbc28213422c779f2f
Time: 2017-09-30
Author: wannaphong@yahoo.com
File Name: pythainlp/romanization/pyicu.py
Class Name:
Method Name: romanization