{"category":"text","endpoint":"https://setget.net/v1/tools/fuzzy-match","examples":[{"input":{"candidates":["apple","maple","grape","banana"],"query":"aple"},"output":{"best":"apple","count":3,"matches":[{"candidate":"apple","index":0,"score":0.8889},{"candidate":"maple","index":1,"score":0.8889},{"candidate":"grape","index":2,"score":0.6667}]}},{"input":{"candidates":["uninstall","install","init"],"limit":1,"query":"instal"},"output":{"best":"install","count":1,"matches":[{"candidate":"install","index":1,"score":0.9231}]},"title":"Only the best match"}],"input_schema":{"additionalProperties":false,"properties":{"candidates":{"description":"The strings to search, as a list.","examples":[["apple","maple","grape","banana"]],"maxItems":5000,"type":"array"},"case_sensitive":{"default":false,"description":"Treat upper and lower case as different.","type":"boolean"},"limit":{"default":5,"description":"How many matches to return at most.","maximum":100,"minimum":1,"type":"integer"},"min_score":{"default":0.3,"description":"Leave out candidates that score below this (0 to 1).","maximum":1,"minimum":0,"type":"number"},"query":{"description":"The text to look for.","examples":["aple"],"maxLength":500,"type":"string"}},"required":["query","candidates"],"type":"object"},"keywords":["fuzzy match","fuzzy search","closest match","did you mean","approximate match","similar strings","spell suggestion"],"related":["levenshtein","regex-extract","dedupe-lines"],"slug":"fuzzy-match","summary":"Find the candidates that are most similar to a query, ranked with a score from 0 to 1.","tier":"inline","title":"Fuzzy match","url":"https://setget.net/tools/fuzzy-match"}
