How would you pull this off in inform?
Let Root verb be the text matching regular expression "(\w+)\s+(\w+)\Z" in English input.
As in: I want to capture the last two words in English input and assign them to Root verb.
How would you pull this off in inform?
Let Root verb be the text matching regular expression "(\w+)\s+(\w+)\Z" in English input.
As in: I want to capture the last two words in English input and assign them to Root verb.
That would be:
if the English input matches the regular expression "\w+\s+\w+$", let Root Verb be the text matching regular expression;
Ahh, I was so close