Open osma opened 1 year ago
Annif (code in main branch) has now the language detection method in the API (https://github.com/NatLibFi/Annif/issues/631/, https://github.com/NatLibFi/Annif/pull/659), so this feature could be implemented.
I started experimenting with this.
In user interface the most natural approach was to modify the first menu to be only for the vocabulary (items would be YSO (<version-name>)
, YKL
, KAUNO
and KOKO
(in the future)), and to add a menu below for the language of the text (the default selection is automatic detection)
In the text language menu manually selectable should be only the languages supported by the selected projects, others could be absent or preferably grayed out, like English and Swedish for KAUNO).
Actually, a checkbox for automatic language detection beside the text language menu is better (layout to be refined):
A possible enhancement for the Finto AI user interface would be to detect the language of input text. This would be easy to implement if the corresponding functionality is added to the Annif REST API: see https://github.com/NatLibFi/Annif/issues/631
How best to add this feature to the UI needs a bit more thought. I can think of two approaches: