KoreanKit 1.0.1

KoreanKit 1.0.1

Maintained by bugkingK.



KoreanKit 1.0.1

  • By
  • bugkingK

KoreanKit

You can separate the initial, neutral, and finalities of Hangul. You can check if the text is syllable

Installation

CocoaPods:

pod 'KoreanKit'

Manual:

Copy KoreanKit.swift to your project.

Swift Package Manager:

You can use The Swift Package Manager to install KoreanKit by adding the proper description to your Package.swift file:

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/bugkingK/KoreanKit.git", from: "1.0.0"),
    ]
)

Then run swift build whenever you get prepared.

Using KoreanKit

let korean = KoreanKit()
// ㅇㄴㅎㅅㅇ Hello
print(korean.split("안녕하세요 Hello", syllable: .initial))
// false
print(korean.isSyllable("", syllable: .medial))

License

KoreanKit is available under the MIT license. See the LICENSE file for more info.