Open tmaybe opened 9 years ago
A little complicated, and a lot risky. Two people trying to do this at the same time will walk all over each other. Better to assign numbers when definitions are created, and never let them change. It might make for weird “1. 3. 4.” kinds of lists.
It might be better to have the bot start maintaining state, so you can express your intention with a simple command and then it can ask you for refinement. Like if you typed \gloss delete EW
and EW
had more than one definition, it would ask you to tell it which definition you wanted to delete.
Currently, Gloss Bot only allows you to set one definition per term. Instead, we could save multiple definitions per term and offer a relatively simple interface for manipulating them. So
/gloss EW = Eligibility Worker
Would get you the definition
Then
/gloss EW = Entertainment Weekly
Would show
Move a definition
/gloss move EW 2 to 1
Delete a definition
/gloss delete EW 1
Replace a definition
/gloss EW 1 = Entertainment Worker
Is it too complicated?