18 | | Another option of the translator is to translate fragments. Consider we have a paragraph containing multiple sentences. Each of these sentences can be translated one of the available tuples in the database. |
| 18 | Another option of the translator is to translate fragments. Consider we have a paragraph containing multiple sentences. Each of these sentences can be translated one of the available tuples in the database. The fragment translator repeatedly tries to apply the following steps until the entire paragraph is translated: |
| 19 | |
| 20 | {{{ |
| 21 | if text starts with any of " .,:{}-\n\t": |
| 22 | literally copy that character into the translation |
| 23 | else |
| 24 | find tuple that matches most characters of text |
| 25 | translate this part of the text using that best match |
| 26 | }}} |