Testing Search with Ordinary Spelling Variants
A retrieval test can distinguish casing, punctuation, spacing variations, and true word changes under the intended normalization.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace two variants
“UTF-8” and “utf8” may be treated as aliases for one term. “UTF-16” should remain distinct in a query looking specifically for UTF-8. See normalizing terms.
Check expanding coverage
A broadened hyphen rule can improve one query and produce irrelevant results for another, depending on the expected terms. Precision and recall describe complementary effects.[1]
Compare corrected coverage and unwanted expansion
A test set includes query “catalogue” and a variant “catalog.” If expansion adds relevant results for one, compare how many unrelated records also appear near the top. Keep judgments for spelling families separate from unrelated typos. See search precision.
Before: variant query misses expected document
After: intended hit enters top five
Verify number of unrelated new hits and effect on exact query
Tune for the field readers use
A short product code may need exact lookup, while natural-language text can tolerate variants. Test stable IDs and ordinary vocabulary under their respective rules.