jongseong

WebJar for jongseong

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

jongseong
Last Version

Last Version

0.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

jongseong
WebJar for jongseong
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/kimdhoe/jongseong

Download jongseong

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/jongseong/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jongseong</artifactId>
    <version>0.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/jongseong/
implementation 'org.webjars.npm:jongseong:0.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/jongseong/
implementation ("org.webjars.npm:jongseong:0.4.2")
'org.webjars.npm:jongseong:jar:0.4.2'
<dependency org="org.webjars.npm" name="jongseong" rev="0.4.2">
  <artifact name="jongseong" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='jongseong', version='0.4.2')
)
libraryDependencies += "org.webjars.npm" % "jongseong" % "0.4.2"
[org.webjars.npm/jongseong "0.4.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

종성 jongseong

Travis Codecov license npm Standard - JavaScript Style Guide PRs Welcome

한글 글자의 받침을 확인합니다.

Install

$ npm install --save jongseong

Usage

const { code, hasJongseong } = require('jongseong')

API

code(word)

마지막 글자의 받침 코드(0...27)를 반환합니다.

word

  • Required
  • Type: string
code('가나다')  // =>  0
code('가나닥')  // =>  1
code('가나닶')  // => 18
code('가나닿')  // => 27
code('112')  // =>  0  (백십이)
code('113')  // => 16  (백십삼)
code('100')  // =>  1  (백)

hasJongseong(word)

마지막 글자에 받침이 있는지 여부를 반환합니다.

word

  • Required
  • Type: string
hasJongseong('커피')  // => false
hasJongseong('코딩')  // => true
hasJongseong('105')  // => false  (백오)
hasJongseong('100')  // => true  (백)

받침 코드

받침 코드는 0부터 27까지의 정수입니다.

코드 받침 예시
0 -
1
2 ㄱㄱ
3 ㄱㅅ
4
5 ㄴㅈ
6 ㄴㅎ
7
8
9 ㄹㄱ
10 ㄹㅁ
11 ㄹㅂ
12 ㄹㅅ
13 ㄹㅌ
14 ㄹㅍ
15 ㄹㅎ
16
17
18 ㅂㅅ
19
20 ㅅㅅ
21
22
23
24
25
26
27

License

MIT © Kim Donghee

Versions

Version
0.4.2