#Valid Answer for Custom Category System

1 messages · Page 1 of 1 (latest)

turbid mulch
#

in my game, I have a mode where players have to say a word that would fit a determined category, I have a lot of predefined categories and lists of words that work for them, but I also want to allow users to choose their own categories in private rooms, unfortunately, having them define their own dictionary of words sounds very very unfun and kind of kills the idea of allowing user defined categories,

My initial thought to get around this was ai, and while that works, I would like to avoid it if possible, I just can't think of an elegant way of doing it that doesn't result in a lot of bruteforcing or tons and tons of extra work to implement, anyone have any ideas on this?

I also need to actually have a system for "valid" answers, since this will be an online game and it does need to actually validate the answers, plus that way there aren't arguments over if a word works or not

#

Valid Answer for Custom Category System

candid tulip
#

ive been thinking

#

Instead of “category = list of valid words” why not the treat categories as rules over an existing global dictionary

turbid mulch
#

that'd cover the "bruteforcing" part of my concern though, every would would need a list of rules that it covers

#

and things that it's related too

#

being like a tree of info for every single word

candid tulip
#

i mean yeah you would need to create metadata for individiual words

#

it wouldnt be a tree info

#

it would be something like

"apple": {
  "type": ["noun"],
  "is_food": true,
  "is_fruit": true,
  "color": ["red", "green"],
  "starts_with": "a",
  "length": 5
}
turbid mulch
#

yeah but how would that be covered by, "nature" or "red"

#

or well

#

you have color there

#

but you know what I mean

#

it can't cover every category

#

like technology

#

apple would count

candid tulip
#

well yeah but i mean technically what you are asking is a bit too ambitious

#

and seems almost impossible

#

if you want to let players decide every natural category

#

why not let them choose from templates?

turbid mulch
#

I wouldn't call it ambitious, just a puzzle that I need to find the solution for

#

wdym by template? there will be a lot of existing categories

#

but I want a way to cover the non-mainstream and more niche subjects

candid tulip
#

well instead of letting players have categories like "Stuff that makes my grandma sad", no way to validate logically, you can have something like

“Things that are: blank”

“Things you find in: blank”

“Words related to: blank ”

“Adjectives describing: blank”

#

goddamnit discord markdown

turbid mulch
#

lmao

#

I forgot the syntax to remove markdown

candid tulip
#

there thats what i meant

turbid mulch
#

but yeah I mean that could work, and then just have metadata for every word with those

#

but that still wouldn't quite cover the niche stuff I'm after

candid tulip
#

but i think you shouldnt be seeking perfect validation for this

#

imo

turbid mulch
#

for this to be a super solid party game, it'd need to be able to support even the niche things

candid tulip
#

players dont care aboout correctness as much as they care about fairness and fun

turbid mulch
#

and yeah ik

#

that's why the system would need to be in play in the first place

#

nothin ruins a game more than arguing over whether something is correct

#

and for word games, wew

#

it's important

#

but I do get what you mean

candid tulip
#

you could probably still do the metadata approach but use like third party lexical data

turbid mulch
#

yk, maybe wikipedia would be a good place to start, the whole wikipedia race situation has a whole list of relevant information

#

I wonder if there's an api that lets me grab that

candid tulip
#

try wordnet

turbid mulch
#

so if someone says "unity" it'd give them a list of options you can use, and then it'd grab the relevant link words

#

I'll check it out

candid tulip