diff --git a/textdistance/algorithms/base.py b/textdistance/algorithms/base.py index 5ce8cc7..7d8f81c 100644 --- a/textdistance/algorithms/base.py +++ b/textdistance/algorithms/base.py @@ -128,7 +128,7 @@ def _get_sequences(self, *sequences: Sequence[object]) -> list: if self.qval == 1: return list(sequences) # by n-grams - return [find_ngrams(s, self.qval) for s in sequences] + return [find_ngrams(s, self.qval) or list(s) for s in sequences] def _get_counters(self, *sequences: Sequence[object]) -> list[Counter]: """Prepare sequences and convert it to Counters.