Skip to content
Kotoshu Kotoshu 言修
News

2026-09-05 release. 5 September 2026

kotoshu 0.7.0 ships model tiers and the native extension

The biggest gem release so far brings tiered models with a registry, the native extension, and a conformance-frozen engine.

  1. The model tiers are full at about 120 MB, fluency at about 15 MB as the new default, and mini at about 3 MB, and they resolve through the models repository’s registry with SHA-256-verified primary, mirror, and vocab downloads. KOTOSHU_MODEL_TIER, setup --model --tier, and a tier-less legacy-cache bridge keep older caches loading.
  2. The optional native extension compiles the Rust core into the gem, KOTOSHU_BACKEND=ruby|native|auto selects it, and the Ruby and Rust engines agree on all 2,630 frozen conformance vectors.
  3. A confidence cascade skips the ONNX rerank when the composite strategies are already confident — semantic quality where it matters, plain speed where it does not.
  4. Hunspell correctness: CHECKCOMPOUNDPATTERN replacement support, dot-split casing, INITCAP ngram-root skip, and AF alias flag parsing. The integrational suite runs 176 examples with zero failures.

see also kotoshu 0.7.0 on RubyGems CHANGELOG Model tiers — docs