From 7418e41181a9fb829365b4050b51575e1f773881 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 25 Feb 2026 18:18:06 +0100 Subject: m + add "before" function for collation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index a6a989c..d4bf65d 100644 --- a/README +++ b/README @@ -30,10 +30,18 @@ DESCRIPTION Modifies and returns a word so that it can be used to compare against known words in the dictionary. - The default implementation of this function converts the - word to lower case using Python's string class's + The default implementation of this function converts + the word to lower case using Python's string class's lower() function. + before(word1 : str, word2 : str) -> bool + Collation function that checks that word1 comes before + word2 in the dictionary (if so, it returns True, + otherwise it returns False). + + The default implementation of this function compares + in C locale. + get() -> tuple Returns a 3-tuple containing, in order: the filename of the scanned dictionary, a list of the last word on -- cgit v1.2.3-70-g09d2