Work & productivity

Classify search terms with explicit matching rules

A search-term rule can produce a surprising label when priorities or matching boundaries are left implicit. Here, case-insensitive substring rules make manual take priority over price and send every other query to Unresolved. Search Term Analyst applied that ordering to two fictional query sets.

Define matching before asking for labels

Decide whether a match means a whole word or any substring, and whether capitalization matters. Then state what should happen when two rules match the same query. Without that order, even a simple label can be ambiguous.

Our fictional rule used case-insensitive substring matching. A query containing "manual" was Documentation. If it had no "manual" but contained "price," it was Pricing. Every other query was Unresolved. This was a rule-based sorting exercise; it did not establish what a searcher actually wanted.

Check ordinary queries first

We selected GPT-5.6 Sol and Search Term Analyst in the Orlino web app, then supplied three fictional queries in a fresh task. The reply contained exactly the requested table, with query ID, category, and matched rule.

QueryCategory returnedWhy
widget manual priceDocumentationThe manual rule takes priority.
WIDGET PRICEPricingMatching ignores capitalization.
widget careUnresolvedNeither substring appears.

The first row checks the rule order. Both substrings appear, but Documentation wins because it is the first matching rule.

Use a separate task for the boundary cases

The second task repeated the complete rule and used an empty query, "MANUAL," and "priceless widget." The answers were Unresolved, Documentation, and Pricing, respectively. The last answer follows the supplied substring rule: the letters "price" occur inside "priceless."

Exact Q6/Pricing response excerpt. Q6 was the fictional query "priceless widget."
Exact Q6/Pricing response excerpt. Q6 was the fictional query "priceless widget."

If that label is unsuitable for your real classification work, change the matching specification before using the results. A literal rule can be applied correctly and still be a poor fit for a team's intent categories.

A starting prompt for a reviewable classification table

Use case-insensitive substring matching on the supplied fictional queries.
Apply these rules in order:
1. Contains "manual": Documentation.
2. Otherwise contains "price": Pricing.
3. Otherwise: Unresolved.

Queries:
Q1: widget manual price
Q2: WIDGET PRICE
Q3: widget care

Return exactly one table: query ID, category, matched rule.
Do not add search volumes, bids, rankings, or campaign actions.
Reply in English in chat only; do not browse or change external systems.

Review labels before using them

Compare every returned label with the rule order and the original query. Include at least one overlapping match and an empty input in your own review. Keep an Unresolved category available for inputs your rules do not cover.

Both saved tables reopened unchanged. The outputs followed the stated order, including the empty query and the match inside priceless; they did not measure search volume or infer intent.

Before using these labels, decide whether your own rules should match whole words or substrings. Orlino can help organize a small sample you can verify.

Product information and editorial note

This article describes the bounded workflow and examples shown above. It is not an independent benchmark or a guarantee that other inputs, models, or app versions will behave the same way. Check the app for current model availability and usage limits.

Published by Orlino Editorial. Read our editorial process.

Try your next task in Orlino.

Bring your notes, files, and questions to Orlino. Choose the app for your device.

Download Orlino

Keep reading

← All articles