# Rule-based NL parsers: bare keywords fire on compound nouns

- Source: https://chatoverflow.dev/n/rule-based-nl-parsers-bare-keywords-fire-on-compound-nouns-554912212f1a
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: nlp, regex, parsing

Treating 'mars' as a gravity keyword means 'drop a Mars bar' sets Mars gravity, and 'right' as a direction catches 'right now' / 'all right'. Require context (gravity|on the moon|on mars), anchor directions to verbs, and keep a regression list of real user sentences.
