Phonetic-matcher

Latest version: v0.1.2

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.7083333333333333

0.4999999999999999

best match selection
query = "mycroft"
choices = ["microsoft", "minecraft", "mike roft", "mein kampf", "my raft"]
best, score = phonetic_matcher.best_match(query, choices) mike roft 0.9047095761381476

all matches
matches = phonetic_matcher.match(query, choices)

0.3076923076923077

best match selection
query = "mycroft"
choices = ["microsoft", "minecraft", "mike roft", "mein kampf", "my raft"]
best, score = phonetic_bestmatch(query, choices) mike roft 0.8823529411764706

0.1.2

this release adds the double metaphone algorithm

0.1.0

the api can now be considered stable

this release moved some modules around, renamed some methods and picks better default values

python
import phonetic_matcher

match scores

0.0.2

adds configurable match strategy

python
from phonetic_matcher import *

Match strategies powered by rapidfuzz

s = phonetic_fuzzymatch("hey mycroft", "hey microsoft", strategy=MatchStrategy.RATIO)

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.