presciencelabs / tabitha-ontology

0 stars 0 forks source link

Ability to search glosses #11

Closed longrunningprocess closed 5 months ago

longrunningprocess commented 7 months ago

request from Craig:

I like the look and search function too! From a workflow perspective as a grammar builder, I rarely go into the Lexicon to look up a specific word, I think I usually want to see words with certain features. So having an intuitive feature search/filter is important. It's primarily when mapping a word in the ontology to a target word that I will look up a specific word, and even then it's more the gloss that I will search for.

Do you envision the search bar looking through just the target words or also the glosses/examples? (Richard requested this as well)

longrunningprocess commented 7 months ago

Craig asked for some filtering, e.g., show me all the nouns, or limit my search results to Nouns only.

moved this feature into a separate issue

longrunningprocess commented 5 months ago

API

/search?q='search term'&scope=[stems|glosses|examples]

defaults to stems

Mock

image

Results

Add "found in the [stems|glosses|examples]" to these indicators:

image image

User feedback

longrunningprocess commented 5 months ago

further discussion leads me to think example searching might be more appropriate over on https://sources.tbta.bible. Need to ask users more about the use case.

For now, maybe it makes sense to narrow this issue to searching glosses only. Need to determine from users whether they want the ability to choose stems or glosses for search... maybe they like the option but there would be a third option of "Search both"

longrunningprocess commented 5 months ago

default to stems in dropdown. Offer glosses option as well as "Both"

app should remember last choice for this.