word_similarity
Measure similarity between two strings using Jaccard, cosine, or Dice algorithms for word or phrase comparison.
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 |