> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/data/string/calculate-text-similarity.md).

# Calculate Text Similarity

This activity calculates the similarity score of two user-specified text inputs.

### Input

* **Text 1:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) <mark style="color:red;">`Required`</mark>\
  Specifies the first text input.
* **Text 2:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) <mark style="color:red;">`Required`</mark>\
  Specifies the second text to be compared with the first input.

### Configure

* **Scoring Method:**\
  Specifies the scoring method used for calculating the similarity. The available options are:-
  * `Exact` - To obtain a score for an exact match of the 2 input texts. That means if the two input strings are of the exact match then the score will be **100** else it will be **0**.
  * `Levenshtein` - To obtain a score to determine the number of shift, replace and insert operations that are required to transform **Text1** input to **Text2** input.

### Output

* **Similarity:** [`Integer Variable`](/getting-started/rpa-studio/variables/user-defined-variables-1.md#int64)\
  Specifies the similarity in the range 0-100, 0 means strings are completely different and 100 means exact match.

###
