presciencelabs / tabitha-ontology

0 stars 0 forks source link

part of speech filter for results #44

Closed longrunningprocess closed 3 months ago

longrunningprocess commented 3 months ago

received a request from the team today to see all words for a given part of speech...

I'm wondering about a UI with a dynamic part of speech icon(button) bar similar to the view toggle:

image

that would allow the parts of speech represented by the returned results to be clicked to narrow the results down to just those buttons selected...

[ Noun ] [ Verb ] [ Adposition ] [ Particle ]...

ref: https://daisyui.com/components/join/#join-radio-inputs-with-btn-style

buttons that are selected would simply apply filters to the underlying "results"

Originally posted by @longrunningprocess in https://github.com/presciencelabs/tabitha-ontology/issues/42#issuecomment-2204095167

craigp-atw commented 3 months ago

Started work on this in the linked branch. The back-end is updated, and a rough UI is working. Feel free to fine-tune the UI or make any other changes as you see fit.

I started trying to support selecting multiple parts of speech, but it requires more complexity. I'm not sure what the use case is of being able to select multiple parts of speech, so I opted for the simpler approach of only allowing one.

longrunningprocess commented 3 months ago

image

the way this is working right now makes me reconsider it a bit... in its current implementation, I think it would actually be quite natural to simply add it right next to the existing "Stems only" dropdown.