Code Monkey home page Code Monkey logo

hangulutil's Introduction

hangulUtil

Python utilities for Hangul

사용방법

한글 확인

code


import hangulUtil as han


txt = ['한글입니다.',
         '한글 pluse English',
         'Just Alphabet']

for t in txt:
    print(t)
    if han.isHangul(t):
      print('it is korean')
    else:
      print('it is not korean')
    print('')

output

한글입니다.
it is korean

한글pluseEnglish
it is korean

JustAlphabet
it is not korean

숫자 문자를 한글로 바꾸기

code


import hangulUtil as han


txt = ['1234',
         '190.20',
         '100000.0']

for t in txt:
    print(t)
    print('to')
    print(han.digit2txt(t))


output

1234
to
천이백삼십사
190.20
to
백구십쩜 이
100000.0
to
십만

hangulutil's People

Contributors

chandong83 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.