I need a combination programmer and semanticist

Whoa. NP hard problems have nothing to do with the halting problem. The halting problem is undecidable, NP hard problems are algorithmic and decidable - they just take a lot of time in the worst case. It doesn’t even mean that the problem is hard in practice - I have a paper in Transactions on Computers that shows a particular NP hard problem is actually near linear for lots of practical cases.

However you are correct about parsing grammars. I can think of problems that it can reduce to, so I am pretty sure it is NP hard. I haven’t done this kind of thing in a long time, so if you doubt yourself I would have to do a tad of research, but look up NP complete and I bet you’ll find problems just like this, if not this one.

From here:

Breaking RSA doesn’t appear to be NP-hard, so my initial claim was a bit strong, at least for regular languages.

As long as we’re doing xkcd’s:

is appropriate.

I was thinking that you’d never be able to know if you’d actually defined the grammar that you care about, you’d only be able to generate one that was consistent with what you’d seen so far. That seems unsolvable to me. But maybe that uncertainty doesn’t matter.

If you’re going to do any kind of meaningful statistics or machine learning, you have to assume that the data you’ve seen is representative of the data you haven’t seen. So it matters, but on a deeper level than you really need to worry about on a day-to-day basis.