X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=collate%2F_abcollator.py;h=a6ec268d9bb6512bffd6b1d752088798fde6ea09;hp=99866c36cac82698313be7c3237ddc3052a6843c;hb=96cd5d3ad9dd1390c7739a6c3b9fa03ac3a2b4ff;hpb=f73c4c6cd3ed326c5735ab33a6896697227d07e3 diff --git a/collate/_abcollator.py b/collate/_abcollator.py index 99866c3..a6ec268 100644 --- a/collate/_abcollator.py +++ b/collate/_abcollator.py @@ -9,3 +9,6 @@ class Collator(object): This split is done using Unicode's definition of whitespace. """ return string.split() + + def wordkeys(self, string): + return map(self.key, self.words)