UMDLARS / one_night_in_sf

A story game demonstrating why physical security is important and complex!
2 stars 2 forks source link

TWN (Three-Word Names) #243

Closed pahp closed 6 months ago

pahp commented 6 months ago

A student wrote:

Maybe the parser doesn't like three word names? It didn't recognize Phillips head screwdriver but did recognize phillips screwdriver, same with loose floor tile vs floor tile.

Can the parser handle TWNs, @spacehobo ? Fix, report, or WONTFIX this as you see fit.

libraun commented 6 months ago

Here's some stuff that might help with this:

Parser Routines: https://github.com/johanberntsson/PunyInform/wiki/manual#parser

ChooseObjectsFinal Routine (not sure what this is, but it looks interesting): https://github.com/johanberntsson/PunyInform/wiki/manual#chooseobjectsfinal

spacehobo commented 6 months ago

Names are meant to be entered as a list of dictionary words. One example from page 57 of the DM4 is:

Object magpie "black-striped bird"
  with name ’magpie’ ’bird’ ’black-striped’ ’black’ ’striped’,
    wingspan 5, worms_eaten;

Note that instead of trying to use a string such as "black-striped bird" (which is the display name declared), they listed each component descriptive word in the name array. Using a string (double-quotes) won't work: the name array only accepts single dictionary words.