Capitalization repair (enabled by default)
Overview
| Description | Attempts to enforce consistency between replacement text and original text. |
| Default | Enabled |
| Supported Attributes | target_languages
|
Details
The repair process does not currently repair capitalization to match the lookup segment. During word transformations, it attempts to maintain the capitalization of the original words from the source and target. If the word being replaced is capitalized, the new word will be capitalized. If the entire text is all capitalized, the replacement text will be all capitalized. If the original text is mixed, only the first letter of the new text will be capitalized (but only if the first letter of the original text was capitalized).
Consider the following examples:
Lookup Segment: There are more crazy pies. Source Segment: There are more amazing pies. Target Segment: Amazing pies are still there. Repaired Source Segment: There are more crazy pies. Repaired Target Segment: Crazy pies are still there.
Lookup Segment: There are more crazy pies. Source Segment: There are more aMazing pies. Target Segment: AMAZING pies are still there. Repaired Source Segment: “There are more crazy pies. Repaired Target Segment: “CRAZY pies are still there.
Lookup Segment: There are more crazy strawberry pies. Source Segment: There are more AMAZING APPLE pies. Target Segment: Amazing Apple pies are still there. Repaired Source Segment: There are more CRAZY STRAWBERRY pies. Repaired Target Segment: Crazy strawberry pies are still there.
Recommendation
SDL encourages you to use this repair whenever the word transform repair is used. This repair to minimizes the need to make additional edits related to capitalization. However, there may be cases where you do not wish to apply the heuristic, in which case you should disable this repair.