I had two focus areas this month: further refinement of the Text Parser, and getting exploration behavior in a text adventure game to a demo-ready state. I'll be saving the second one for a special post next month.
The first urgent Parser change was to differentiate the possible uses of "once." The Parser was always treating it as the opener for a dependent clause, as in this sentence:
Once we get there, we can sit down and eat.
As a result it completely mangled sentences in which "once" is just a regular adverb, like these:
I hiked the Royal Arch Trail once.
Once upon a time there were three little pigs.
I banged headfirst into this deficiency while working on subnarratives a couple months ago (adverbial "once" is a convenient way to announce that you are launching into a self-contained story from the past), so it was a high priority to clean up. I borrowed some of the code I used for disambiguating "that," which is even more complicated, and fixed it pretty easily. I also expanded the Parser's ability to detect noun phrases used as time adverbs (e.g. "one day," "every year").
The rest of the work was about pushing the envelope of conjunction handling. A couple of years ago, probably, when I first added conjunction support to the Parser, I came up with a selection of "difficult sentences" that had multiple conjunctions, or conjunctions joining whole phrases, or conjunction groups nested inside phrases. My first version of conjunction management couldn't handle those, so there they sat in the Parser regression for a while, commented out. When I gave them another try this month, I was pleasantly surprised to see that my latest scheme could get the correct sentence structure for a lot of them right out of the gate. Most of what needed to be handled were minor bugs like "adjectives inside two nested layers getting lost." I did some new work where nouns of direct address and prepositional phrases were concerned - these were two sentence parts I had yet to set up to be joined by conjunctions.
Here are some example sentences from the set, diagrammed using output from the Parser:
The dog and the child ate dinner and played tag and ball. (Three conjunction groups, the third nested inside the second)
Did you know that a cat is an animal and a rock is an object? (Conjunction joining two subject-verb-object groups inside a dependent clause)

The swallows under the bridge and in the barns fly at noon. (Conjunction joining two prepositional phrases)
I made so much progress that I even had time for some refactoring. I cleaned up the output formatter that translates Parser's annotated version of the sentence into the diagrammatic structure that gets sent to the Interpreter; I was able to consolidate quite a bit of code there.
Until the next cycle,
Jenny
