Beispiel #1
0
def load_origin():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load origin word data

    Returns: origin word dictionary
    """
    origin = misspell_single_data()
    return origin
Beispiel #2
0
def load_verb():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load verb data

    Returns: verb dictionary, alternative list
    """
    verb = misspell_single_data("verb")
    alternative = {}
    return verb, alternative
Beispiel #3
0
def load_suffix():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load suffix data

    Returns: suffix dictionary, alternative list
    """
    suffix = misspell_single_data("suffix")
    alternative = {}
    return suffix, alternative
Beispiel #4
0
def load_noun():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load noun data

    Returns: noun dictionary, alternative list
    """
    noun = misspell_single_data("noun")
    alternative = {}
    return noun, alternative
Beispiel #5
0
def load_determiner():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load determiner data

    Returns: determiner dictionary, alternative list
    """
    determiner = misspell_single_data("determiner")
    alternative = {
        "요런": "이런",
    }
    return determiner, alternative
Beispiel #6
0
def load_adjective():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load adjective data

    Returns: adjective dictionary, alternative list
    """
    adjective = misspell_single_data("adjective")
    alternative = {

    }
    return adjective, alternative
Beispiel #7
0
def load_eomi():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load eomi data

    Returns: eomi dictionary, alternative list
    """
    eomi = misspell_single_data("eomi")
    alternative = {
        "습니다": "니다",
        "는데요": "는데",
    }
    return eomi, alternative
Beispiel #8
0
def load_preEomi():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load preEomi data

    Returns: preEomi dictionary, alternative list
    """
    preEomi = misspell_single_data("preEomi")
    alternative = {
        "었": "있었",
        "엇": "있었",
    }
    return preEomi, alternative
Beispiel #9
0
def load_conjunction():
    from mkdg.utils.getmisspell import misspell_single_data
    """
    Load conjunction data

    Returns: conjunction dictionary, alternative list
    """
    conjunction = misspell_single_data("conjunction")
    alternative = {
        "그러면": "그럼",
        "그런데": "근데",
        "따라서": "그래서",
        "하지만": "그렇지만",
        "그러나": "그렇지만",
        "또는": "또",
    }

    return conjunction, alternative