Documentation Center

Configurable penalties

The following table identifies the scoring penalties supported by WorldServer. Penalties are assessed against each segment element based on the specific differences between the lookup segment and the TM match segment. You can override the default penalty values by editing the tm.properties file.
TM PropertyValue Set (Default)Description
tm_score_capitalization_penalty0 ??? 1 (.01)This penalty is assessed when the word elements being compared are identical except for capitalization differences. By default, the penalty is less than the full word difference cost.
tm_score_punctuation_penalty0 ??? 1 (.005)This penalty is assessed when the elements being compared are identical except for surrounding punctuation differences. By default, the penalty is less than the full word difference cost. Note that this penalty may be assessed twice for a given set of compared elements since the leading and following punctuations are handled separately.
tm_score_placeholder_sequence_penalty0 - 1 (.05)This penalty is assessed when the elements being compared are both placeholder values, but they have different index values. (Having different index values means that one of the segments has more placeholders than the other up to the point being considered.)
Values of zero disable the penalties. Penalties reach a maximum at the weight of the element being penalized.