Friday, July 3, 2009

Readable Things

I've created my first open-source project. ReadableThings

Its a framework for generating string output for first, second, and third person in English.

For example, using World of Warcraft, I target the Sunreaver Guardian Mage and type, "/moo".

The output is:
You moo at Sunreaver Guardian Mage. Moooooooooo.

World of Warcraft has just failed a Turing Test.

The output should be:
You moo at a sunreaver guardian mage. Moooooooooo.

This framework is based on some of the earliest c# code that I ever wrote, back during the earliest beta of Visual Studio.Net. Simple logic indicating when to use the indefinite versus the definite article in English remains relevant to game programming.

I don't have an MMORPG of my own where this would be relevant, but given enough free weekends, I may come up with an alternative use for it.

There was originally a parser to go with this framework, that together created something similar to a natural language parser, alone though, this is something more along the lines of natural language output.







Reblog this post [with Zemanta]