thepeergroup / aspen

Aspen is a markup language for turning text into graph data (via Cypher for Neo4j).
https://aspen-lang.org
MIT License
62 stars 7 forks source link

String matchers in custom grammars require quotes. #5

Closed beechnut closed 4 years ago

beechnut commented 4 years ago

From the README, in the section on custom grammars:

String matchers will match anything in double-quotes. (Please don't use single quotes, as Aspen doesn't support them yet.)

At the moment, if you have a string matcher like

Matt works as a (string job_position) at UMass Boston.

then make sure to write the job_position in quotes, like

Matt works as a "research assistant" at UMass Boston.

If you don't, it won't match.

This will be addressed in a future update, because the quotes read as sarcastic. 😉

Let's get rid of needing those quotes. We could always make them optional, but I don't see a clear need for them at all.