0 votes
109 views

The Apertium transfer engine searches for patterns in your source text. The patterns it searches for are those defined for each rule you have. Some patterns may be one word, some patterns may be multiple words. The transfer engine tries to match the longest patterns first and then progressively goes to shorter and shorter patterns. This means a five-word pattern would be used before a three-word pattern (assuming a set of words would match both patterns.) When there are multiple patterns of the same length, the first one listed gets precedence. This means in some cases the order of your rules will be important.

The transfer engine searches for matches in your words in sequential order starting with the first word. It will never find a match at some point in a text and then go back earlier in the text.

Another important concept is that the transfer engine processes words just once for whatever pattern is matched. After they are processed, the words are not examined again for any other matches. In other words, patterns cannot apply in an overlapping manner. For example, if you have a rule that matches determiner-noun and another one that matches noun-adjective, when a sentence of the form determiner-noun-adjective is processed. The engine uses the rule that is listed first and then discards the three words and continues on to other words. The second rule does not get applied. Another way to describe it is to say that the engine processes words in distinct chunks.

If the Apertium transfer engine finds a match, it runs the action part of your rule. If the engine finds no match for a word, it does default translation of it according to what is in the bilingual dictionary. Cf. “How Rules are Applied”.

FLExTrans by (336 points)
reshown | 109 views

Please log in or register to answer this question.

Related questions

+2 votes
4 answers 473 views
Reposted from @KimB Thank you, anon044949. We have been using Match based on stems since before PT9. My problem is not ... to FW in this case? Thanks in advance for any insights.
[Expert]
Jeff_Shrum
2.9k
asked Oct 9, 2020
0 votes
2 answers 344 views
I was poking around in settings and I noticed I have the option to use this forum in Mailing list mode. So I created ... writing this message and might choose not to send it to me
[Moderator]
dhigby
1.3k
asked Jan 19, 2017
0 votes
6 answers 607 views
Can someone explain the Paratext registration process to me? When a new user or their project leader or support person ... done, any Joe Bloggs could register and get approved.
wdavidhj 1.4k asked Sep 17, 2015
0 votes
0 answers 152 views
Continuing the discussion from Poll: Allow out of sequence verse numbers in cross references?: Poll: Allow out of sequence ... latest vote (only) is reflected in the poll counts.
anonymous asked May 19, 2015
0 votes
2 answers 168 views
I'm just wondering what would happen if a user tries to use PTXPrint, including tasks that pull in Paratext data ... the send/receive is to Internet, Chorus Hub, or Flashdrive?
Ben Pehrson 280 asked May 4, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
If anyone destroys God’s temple, God will destroy that person; for God’s temple is sacred, and you together are that temple.
1 Corinthians 3:17
3,037 questions
5,994 answers
5,661 comments
2,022 users