diff --git a/pythesint/cf_vocabulary.py b/pythesint/cf_vocabulary.py index 122719a..23d2fcf 100644 --- a/pythesint/cf_vocabulary.py +++ b/pythesint/cf_vocabulary.py @@ -1,7 +1,9 @@ from __future__ import absolute_import - from xml.dom.minidom import parseString + import requests +from rapidfuzz.fuzz import partial_ratio, ratio + from pythesint.json_vocabulary import JSONVocabulary @@ -55,3 +57,6 @@ def _fetch_online_data(self, version=None): cf_list.append(stdname) return cf_list + def fuzzy_search(self, search_string): + return self._fuzzy_search(search_string, scorer=ratio, + results_limit=10, min_score=90.0)