> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sum in Figures - Sum in Words

> Compare a numerical sum with the same sum written in words using the Sum in Figures - Sum in Words rule for Russian-language documents in FlexiCapture.

<Warning>
  This rule can only be set up if you select the Russian recognition language for your Document Definition (**Document Definition →** Document Definition Properties...).
</Warning>

The purpose of this rule is to compare a numerical sum with the corresponding sum in words written in Russian. If the two sums are not identical, a message is displayed saying that the rule returned an error.

To create a "sum in digits - sum in words" rule, proceed as follows:

1. Open the field properties dialog box (right-click the field to open its shortcut menu and select Properties...) or the Document Definition dialog box (from the Document Definition editor menu, select **Document Definition →** Document Definition Properties...).
2. Go to the Rules tab.
3. Click the New Rule... button.
4. From the list of rule types select Sum in Figures - Sum in Words (Russian) and click **OK**.
5. Type the name of the rule.
6. Disable the Show rule name in message to verifier option if necessary. If this option is disabled, the error message will be displayed as "error message" instead of "name of rule: error message".
7. Specify the [severity](/flexi-capture/templates/rules#severity) of the rule.
8. If required, specify the conditions under which the rule must be applied (by default, a rule is applied unconditionally). See [Conditions for applying rules](/flexi-capture/templates/rules#launchconditions) for more information.
9. Specify tags for the rule.
10. Disable the Enabled rule option if necessary. The rule will be created, but will not be applied until this option is enabled by a user.
11. Click **Next >**.
12. Click the Select... button to the right of the Sum in figures field and then select the field of the Document Definition that contains the numerical sum.
13. Click the Select... button to the right of the Sum in words field and then select the field of the Document Definition that contains the same sum in words.
14. If required, enable the Allow kopecks in sum option.
15. Click **Finish** to complete rule creation. The rule name will be shown on the Rules tab.
