apertium / apertium/apertium-apy

Mixed language documents/pages

Open
#179 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
39
Forks
46
PR merge metrics
No merged PRs in 30d

Description

https://github.com/apertium/apertium-webext/issues/2 made me think of how we can handle mixed language content.

In GramTrans, part of the translation pipe for documents (including websites) is a detection program that discards paragraphs not in the expected source language. Discarding means that the final "replace original with translation" step simply does nothing for that paragraph, which leaves the original untranslated. We should do the same in APy, when the user has chosen a specific source language.

But one can go further. When the user has chosen to autodetect input language, for each distinct detected source language, translate those chunks to the target language. Ensure that as much as possible of the document ends up as the desired target language.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.