Approximately Equal

Verb: approximatelyEquals

Available from: <Enterprise>

This command is used to compare two texts and check if they have any degree of similarity, according to the Algorithm used.

Syntax

approximatelyEquals --culture(Culture) --source(String) --target(String) --algorithm(Nullable<TextSearchAlgorithms>) --soundexalgorithm(Nullable<SoundExAlgorithms>) --fuzzyalgorithm(Nullable<FuzzyStringComparisonAlgorithms>) --tolerance(Nullable<FuzzyStringComparisonTolerance>) --manualTolerance(Numeric) (Boolean)=value

Inputs

Script Designer Required AcceptedTypes Description
--culture Language Required Culture Language in which Source Text and Target Text are written. Options:
  • en-US
  • pt-BR
  • pt-PT
  • --source Source Text Required Text Text to compare with Target Text, according to the Algorithm chosen.
    --target Target Text Required Text Text to be compared with Source Text, according to the Algorithm chosen.
    --algorithm Algorithm Required TextSearchAlgorithms Algorithm used to compare the degree of similarity. Options:
  • Fuzzy
  • Soundex
  • --soundexalgorithm Soundex Algorithm Only whenAlgorithm is Soundex SoundExAlgorithms Soundex algorithm used to compare the degree of similarity between Source Text and Target Text. Options:
  • Fonetico
  • KnuthEd2
  • Metaphone
  • Miracode
  • Simplified
  • SQLServer
  • --fuzzyalgorithm Fuzzy Algorithm Only whenAlgorithm is Fuzzy FuzzyStringComparisonAlgorithms Fuzzy algorithm used to compare the degree of similarity between Source Text and Target Text.
    --tolerance Tolerance Only whenAlgorithm is Fuzzy FuzzyStringComparisonTolerance Degree of similarity that is applied to Algorithm to verify that Source Text and Target Text are approximately equal. The options are:
  • Manual
  • Normal
  • Strong
  • Weak
  • --manualTolerance Tolerance Value Only whenTolerance is Manual Number Minimum percentage from 0 to 100 so that Source Text and Target Text are approximately equal.

    Outputs

    Script Designer AcceptedTypes Description
    value Success Boolean Returns "True" if the texts are approximately equal, or "False" if they are not approximately equal.

    Example

    The command is used to verify that the word "Uait" is approximately equal to "Wait", using the "Soundex" algorithm. At the end, "True" is returned.

    defVar --name executionResult --type Boolean
    approximatelyEquals --culture pt-BR --source Uait --target Wait --algorithm "Soundex" --soundexalgorithm "Fonetico" executionResult=value
    logMessage --message "${executionResult}" --type "Info"
    // Result: True
    

    Remarks

    In this current version of IBM RPA Studio, the specified command is not supported using English (United States) or Portuguese (Portugal). Future versions will offer support.

    See Also

  • Soundex
  • Text Lookup