thai-test-cases

Define and validate Thai word segmentation test cases with span checks.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/preedep/kham --skill thai-test-cases
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: thai-test-cases
Source: https://github.com/preedep/kham/tree/main/.claude/skills/thai-test-cases
Command: npx skills add https://github.com/preedep/kham --skill thai-test-cases

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Write and validate test cases for Thai word segmentation. Use when creating tests, adding edge cases, debugging incorrect segmentation, or writing integration tests for kham-core.

Core Features & Use Cases

  • Patterns and data formats for Thai segmentation tests, including edge-case coverage and span validation.
  • Ready Rust test patterns and integration-style examples to ensure robust segmentation results.
  • Use case: extend test suites for new dictionary entries or normalization scenarios and automatically verify token boundaries.

Quick Start

Create testdata files under testdata/ with one case per line in the input format input|expected1|expected2|... and run cargo test to execute the tests.

Frequently Asked Questions about thai-test-cases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Rust test cases for Thai word segmentation edge cases?

Create testdata files under testdata/ with one case per line using the input|expected1|expected2|... format, then run cargo test to validate Thai word segmentation and span boundaries automatically.

What is the correct testdata format for validating Thai segmentation spans?

The testdata format places one case per line as input|expected1|expected2|..., allowing you to define Thai segmentation expectations and execute span validations across dictionaries and normalization scenarios.

How do I add integration tests for new dictionary entries in kham-core?

Use Rust test patterns and integration-style examples to extend test suites for new dictionary entries or normalization scenarios, automatically verifying token boundaries and edge-case coverage for kham-core.

Does this Skill work for debugging incorrect Thai word segmentation results?

Yes, you can use the provided Rust test patterns and edge-case coverage to debug incorrect Thai word segmentation by validating token boundaries and span outputs against expected testdata.

What are the limitations when testing Thai segmentation edge cases with Rust?

The Skill focuses on structured dataset layouts and Rust test patterns for kham-core QA, meaning test coverage is limited to the defined edge cases, normalization scenarios, and dictionary entries you explicitly configure.