haukex / de-en-dict

German-English Dictionary
https://dict.zero-g.net/
GNU General Public License v2.0
12 stars 2 forks source link

Refine search results by specifying part of speech #25

Open frituc opened 3 months ago

frituc commented 3 months ago

[Report from an active (former Beolingus) contributor]

In Beolingus one could search for translations that are nouns, verbs and adjectives only:

query n = look up query and show only results where query is a noun query v = … verb query adj = … adjective

haukex commented 3 months ago

Thanks for this suggestion, I think this would be possible. What the best user interface for this is depends on a few things:

I see that in addition to nouns, verbs, and adjectives, there are quite a few other annotations, like {prp}, {pron}, or {conj}. Is it desired to filter for all of these, or only the general three categories of noun, verb, adjective?

Is it desired to filter for more than one annotation at a time? I.e. "nouns and verbs" or "everything except adjectives"?

haukex commented 2 months ago

Ok, looks like it was just "Nouns" and "Verbs", please correct me if I'm wrong:

Screenshot 2024-08-31 104634

frituc commented 1 month ago

… and "Adjective", too. The tabs were adaptive according the the search word. E.g., searching for African should show "Noun" and "Adjective" tabs.