presciencelabs / tabitha-targets

0 stars 0 forks source link

Add lexicon word lookup #9

Open craigp-atw opened 3 months ago

craigp-atw commented 3 months ago

Add another API endpoint for getting detailed info about a particular target word in the Lexicon. Most likely to be identified by the word id, but possibly also by the stem.

At the very least the response should include the gloss, comment, features, and constituents. (Ontology mappings will be added in #11 )

eg. targets.tbta.bible/English/lookup/word?id=248 targets.tbta.bible/English/lookup/word?stem=go

A specific use case is the Editor - getting the features of the words will be helpful for sense selection in some cases