Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for multiple definitions #27

Open
tmaybe opened this issue Jul 7, 2015 · 2 comments
Open

add support for multiple definitions #27

tmaybe opened this issue Jul 7, 2015 · 2 comments

Comments

@tmaybe
Copy link
Collaborator

tmaybe commented Jul 7, 2015

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

EW
Eligibility Worker

Then

/gloss EW = Entertainment Weekly

Would show

EW
1. Eligibility Worker
2. Entertainment Weekly

Move a definition

/gloss move EW 2 to 1

EW
1. Entertainment Weekly
2. Eligibility Worker

Delete a definition

/gloss delete EW 1

EW
1. Eligibility Worker

Replace a definition

/gloss EW 1 = Entertainment Worker

EW
1. Entertainment Worker

Is it too complicated?

@migurski
Copy link

migurski commented Jul 7, 2015

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.

@tmaybe
Copy link
Collaborator Author

tmaybe commented Jul 7, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants