Start with S and randomly choose which rules to follow until you have generated a sentence.
Start with "S"
S
├─ NP
│ ├─ Det: that
│ └─ N: person
└─ VP
├─ VP
│ └─ V: slept
└─ Adv: badlyStart with S and randomly choose which rules to follow until you have generated a sentence.
Start with "S"
S
├─ NP
│ ├─ Det: that
│ └─ N: person
└─ VP
├─ VP
│ └─ V: slept
└─ Adv: badly