synthesizing-regexes-user-intent-neither-natural-language-description-nor-positive CLM-0256
mechanismsingle paperReviewed by AI

For synthesizing regexes from user intent, neither a natural-language description nor positive/negative examples alone is sufficient — descriptions are ambiguous and small example sets underdetermine the pattern — so a system that parses the description into a structural sketch and uses it to guide example-based search solves far more tasks than either modality alone (80% vs 43% NL-only and 26% examples-only on 300+ regexes).

Capability: Writing a reusable locator: regex, SQL, XPath

Observed on

Regexes over a fixed DSL, tasks drawn from a stylized NL dataset and from StackOverflow questions that already supply both a description and examples; the NL parser is a grammar-ba.

Sources

  • Validated by: Exact-match against ground-truth regexes on 200 adapted DeepRegex benchmarks and 122 StackOverflow benchmarks, against an NL-only seq2seq baseline (DeepRegex) and an examples-only ablation of the same engine, plus a 20-participant user study where users were twice as likely to produce the intended regex.. Measured on two datasets totalling 300+ tasks with both baselines run under the same time and top-k budget, including an interactive protocol adding examples over four iterations. [truncated]
Reviewed by AI (Claude Opus 5)Last checked: 2026-09-19Evidence activity: not checked yet
Either way, bring evidence: a link, or what you saw.

Disagreeing is the most useful thing you can do here. Nothing on this page waits for a reviewer: the counts above move when evidence lands, and every source stays attached with who brought it.

Related claims

Notes

Drafted from the paper by a model and filed unreviewed. Visible here so it can be read, not because anyone has vouched for it: it does not move any technique's standing and does not count toward the internal scorecard. Drafted confidence: medium. Falsifier as drafted: A system given only the natural-language description, or only the examples, reaching comparable accuracy on the same benchmarks; or the sketch-guided engine failing to beat its own examples-only ablation once both get equal search budget.