Skip to content

FuzzyWuzzy compare

127

The FuzzyWuzzy compare node uses the Levenshtein distance method to determine how similar two strings are. Instead of a simple "yes or no," it returns a percentage-based score, making it perfect for handling typos or near-misses in player input.

When to use this node: * Typo Tolerance: Accepting a password like "Excalibur" even if the player accidentally types "Excalibru". * Voice-to-Text Cleanup: Comparing imperfect text from a voice recognition system against a target command. * Partial Matching: Enabling the partial property to find if one string is a significant part of another, even if not an exact match.

Connectors in

  • A [type: string]
  • B [type: string]

Connectors out

  • result [type: integer]

Node properties

  • A [type: string]
  • B [type: string]
  • ignore case [type: bool]
  • partial [type: bool]
  • token [type: bool]