spencermountain / compromise

modest natural-language processing
http://compromise.cool
MIT License
11.43k stars 656 forks source link

Query: Does Compromise.js compile RegExes from match-syntax? #1075

Closed thegoatherder closed 9 months ago

thegoatherder commented 9 months ago

Do match-syntax patterns ultimately get compiled down to regexes? If so, how can I access them?

spencermountain commented 9 months ago

hi Adam, no it doesn't. You can see the match tokens with nlp.parseMatch(), and you can see the match logic here cheers