grammar read: no exact-form filter; --query ka returns 2,468 substring matches

Open Beginner friendly
#304 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
cli

Research direction

Start by locating the grammar read command and how its current --query filter matches citation forms and allomorphs. Add an exact-form option that checks both fields for equality, then run the command's existing tests with ka and confirm only exact matches are returned.

Written by the indexing model from the issue text.

Description

grammar read --query ka returns 2,468 entries, 100 per page, with no way to ask for the exact form ka.

When the Cebuano lane added the numeral linker ka, it needed to know whether an entry ka already existed. The query matches substrings, so every entry containing "ka" came back, and the lane paged through 25 pages. That cost 8 minutes. Related to #257 (affix queries need the hyphen; no morph-type filter).

Expected: an exact-form filter (--exact, or --form ka) that returns only entries whose citation form or allomorph equals the query.

Next: add an exact-match option to grammar read.

Evidence
  • Friction log: grammar-retros/friction-log.md, CEB batch 2, 2026-11-19, 8 minutes.
  • Motif 9e0e0d340.
Dominant language
C#
Stars
1
Forks
0
Avg merge
4h 4m
Merged PRs (30d)
69

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sillsdev/motif

All issues in sillsdev/motif

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.