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

Context information for alternative meanings #20

Open
chmeyer opened this issue Aug 4, 2015 · 3 comments
Open

Context information for alternative meanings #20

chmeyer opened this issue Aug 4, 2015 · 3 comments

Comments

@chmeyer
Copy link
Member

chmeyer commented Aug 4, 2015

Originally reported on Google Code with ID 20

Hello, thanks for an awesome library.
I want to propose new feature, for words with a multiply senses there is often a context
information in wiktionary that is missing in your API.
Please take a look on the page https://en.wiktionary.org/wiki/fly - 
the word has a number of different senses with contexts like (obsolete), (baseball),(weightlifting)

Could you please add this functionality or point me where to look in sources to add
it.

Reported by acc4konstantin on 2015-05-21 13:04:29

@chmeyer
Copy link
Member Author

chmeyer commented Aug 4, 2015

Feature is trivial, I'l implement it myself.

Reported by acc4konstantin on 2015-05-21 13:31:33

@chmeyer
Copy link
Member Author

chmeyer commented Aug 4, 2015

I see that {{context|$context|lang=en}} is saved in gloss field of Sense. So it can
be extracted from it. 

Reported by acc4konstantin on 2015-05-21 14:08:57

@chmeyer
Copy link
Member Author

chmeyer commented Aug 4, 2015

Currently, the only solution is to post process the sense definition and extract the
context labels. It might be worth to add API or even parser functionality for this.
Ideally, this should also deal with other types of labels (i.e., those not using the
context template).

Reported by chmeyer.de on 2015-05-26 07:45:50

  • Labels added: Type-Enhancement, Component-API
  • Labels removed: Type-Defect

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

1 participant