AddWords Method of the Dictionary Object

This method adds a group of words to the dictionary.


Visual Basic .NET

Sub AddWords( _
  words As StringsCollection, _
  weights As IntCollection _


  IStringsCollection* words,
  IIntsCollection*   weights


[in] This parameter of the StringsCollection type contains the collection of the newly added words.
[in] This parameter of the IntsCollection type that must have the same size as the collection of words, is used to pass information about the weights for the newly added words. The weights for the words must be in the range from 1 to 200. You may pass 0 for this parameter in which case all the words will be included in the dictionary with default weights of 100. The weight assigned to the word in the dictionary may have a set of discrete values only. These values are 25, 50, 100, 200. The value passed in this parameter is rounded to the nearest of the discrete set of values.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.


  • For more efficient operation it is recommended to pre-sort the added words in alphabetical order.
  • For adding one word into the dictionary, you can use the IDictionary::AddWord method.

See also



15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.