word_similarity
Calculate string similarity between two words or phrases using Jaccard, cosine, or Dice coefficient methods.
Instructions
Calculate string similarity between two words or phrases.
Use this to compare strings using various algorithms — Jaccard index,
cosine similarity, or Sørensen-Dice coefficient.
Parameters:
a — The first string to compare.
b — The second string to compare.
method — Similarity method: "jaccard" (default), "cosine", or "dice".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| method | No | jaccard |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |