The language-in data structure

Introduction

Separate from the AI's core data structure is its language data structure. We can represent the language data structure using a separate textual representation.

Mapping words to entities

We can represent mappings like this:

"dog" -> dog
"cat" -> cat
"house" -> house
"house" -> house_v

Notice how the word "house" maps to two different entities: House the noun and house the verb.

Defining nouns, verbs, etc.

We need to define the entities that words map to as being a noun, verb, etc. We will modify the above representation to do this inline:

"dog" -> dog: noun
"cat" -> cat: noun
"house" -> house: noun
"house" -> house_v: verb

Although our noun/verb/etc. designations fall into the realm of the language-in textual representation, they end up getting applied as is_a relationships in the core data structure.