Story 3: My wife's name is Meredith

Story: My wife's name is Meredith
Question: What is my wife's name?
Answer: Meredith

Transformation 1

{noun}'s {noun} -> $1.$2

Application:

wife's name -> wife.first_name

Note: This uses the following word/entity mapping:

"name" -> first_name

Transformation 2

From story 1:

my {noun} -> speaker.$1

Application:

my [wife.name] -> speaker.wife.name

Required knowledge about the world:

Before we can apply this transformation, we need to verify that speaker.wife makes sense. This requires the following knowledge about the world:

speaker is_a person
0.5: person is_a man
0.5: person is_a woman
0.4: man has:0 wife
0.6: man has:1 wife

Transformation 3

From story 1:

{noun} is {word}

Application:

speaker.wife.name = "Meredith"