Git Product home page Git Product logo

yet.js's Introduction

yet.js

옛한글 문서 분석을 위한 라이브러리입니다.

한양PUA와 첫가끝 코드 모두 지원합니다.

설치

yarn yet.js

기능

disassemble(str)

문자열을 자모단위로 쪼갭니다.

disassemble('야 가노라')
// [['ᄒ', 'ᆞ'], ['ㅇ', 'ㅑ'], ' ', ['ㄱ', 'ㅏ'], ['ㄴ', 'ㅗ'], ['ㄹ', 'ㅏ']]
  • str {String} 입력 문자열

search(str, pattern)

문자열에서 특정 유형의 위치를 찾습니다.

search('야 가노라', '가노라')
// [{index: 3, length: 3}]

search('야 가노라', '[ㅎ/ᆞ]')
// [{index: 0, length: 1}]
  • str {String} 입력 문자열
  • pattern {String} 찾으려는 유형

찾으려는 유형은 다음과 같은 조합형 검색어를 포함할 수 있습니다.

  • [ㅎ/ᆞ]: 초성이 ㅎ, 중성이 ᆞ, 종성이 없는 음절
  • [ㅁㅎ/ᆞ]: 초성이 ㅁ 또는 ㅎ, 중성이 ᆞ, 종성이 없는 음절
  • [*/*/ㄹ]: 초성, 중성 관계없이 종성이 ㄹ인 음절

yet.js's People

Contributors

choyongjoon avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos 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.