apertium / apertium-html-tools

Web application providing a fully localised interface for text/website/document translation, analysis and generation powered by Apertium.
http://wiki.apertium.org/wiki/Apertium-html-tools
GNU General Public License v3.0
41 stars 89 forks source link

Corpus examples on single-word translations #453

Open unhammer opened 1 year ago

unhammer commented 1 year ago

https://translate.yandex.ru/?lang=ru-en&text=%D0%BD%D0%B5%D0%B8%D0%B7%D0%B1%D0%B5%D0%B6%D0%BD%D0%BE%D0%B9 has this nice feature where you get corpus examples for words you look up. It's great for language learning (I often add such examples to Anki when looking up words). I would love to have this on apertium.org.

Apy would need a new endpoint like /examples?src=kaz&trg=tat&q=шарасыз, along with a corpus per language pair in a database of some sort indexed on lemmas, probably filled with some sentence-pairs from opus.nlpl.eu

Possible gsoc project?