Parser disambiguation: TWO bags of words?

in adv3lite

cat: Actor 'cat;cute fuzzy little furry orange small; kitty kitten animal'
    "A cute little kitten with orange fur. "

catbook: Thing 'cat in the hat;kids kid kiddie short;book'```
   "A short book for kids."

and if you want to be extra sure you can put a disambigName so that if the parser is confused, it can ask more clearly.

cat: Actor 'cat;cute fuzzy little furry orange small; kitty kitten animal'
    "A cute little kitten with orange fur. "
    disambigName = "cute kitten"
;


catbook: Thing 'cat in the hat;kids kid kiddie child short;book'```
   "A short book for kids."
   disambigName = "cat book"
;

i haven’t tested this to see how robust it is.

edit:

I have no idea how well this would work either but here’s how I’d do it as a first pass (and then bugtest)

ushanka: Thing 'ushanka;russian furry warm fluffy winter;hat cap'
   "An ushanka, one of those warm Russian winter hats."
   contType = In // determines the type of container it is
;

// the + means that Book is contained in the ushanka
+ cat: Actor 'Book;cute fuzzy little furry orange small; kitty kitten animal cat'
    "A cute little cat named Book, curled up in an ushanka. "
    disambigName = "Book the cat"
;

catbook: Thing 'Cat in the Hat;kids kid kiddie child cat hat short;book story'
   "A short book for kids."
   disambigName = "kids book"
;
4 Likes