crystalmoji
Version, currently 0.1.01 version
- 0.1.0latestNov 10, 2025
github.com/rarnu/crystalmoji
Crystal porting for Kuromoji
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crystalmoji:
github: rarnu/crystalmoji
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
>= 1.17.1- License
- MIT
- Author
- rarnu
Dependencies
This version declares no dependencies.
README
crystalmoji
CrystalMoji is a Crystal porting for Kuromoji.
Kuromoji is an easy to use and self-contained Japanese morphological analyzer that does
Word segmentation. Segmenting text into words (or morphemes)
Part-of-speech tagging. Assign word-categories (nouns, verbs, particles, adjectives, etc.)
Lemmatization. Get dictionary forms for inflected verbs and adjectives
Readings. Extract readings for kanji
Several other features are supported. Please consult each dictionaries' Token class for details.
Installation
-
Add the dependency to your
shard.yml:dependencies: crystalmoji: github: rarnu/crystalmoji -
Run
shards install
Usage
require "crystalmoji"
Use it just like Kuromoji.
input = "高い攻撃力を誇る伝説のドラゴン。どんな相手でも粉砕する、その破壊力は計り知れない。"
tokenizer = CrystalMoji::Ipadic::Tokenizer.new
s1 = tokenizer.furigana(input)
s2 = tokenizer.remove_furigana(s1)
puts s1
puts s2
Contributing
- Fork it (https://github.com/rarnu/crystalmoji/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- rarnu - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Nov 10, 2025
- Commit
987722089671- Crystal
>= 1.17.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/rarnu/crystalmoji
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1