From cc5ff45a2b748ce2b88405d086c3393b294f011e Mon Sep 17 00:00:00 2001 From: Ilja Gubins Date: Wed, 20 Mar 2024 00:28:27 +0900 Subject: [PATCH] Added word typo fixes, measured memory usage --- README.md | 2 +- friendlywords/data/objects.txt | 6 +++--- friendlywords/data/predicates.txt | 2 +- friendlywords/friendlywords.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5856f39..6fce2b8 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Install with PIP: `pip install friendlywords` ```python import friendlywords as fw -# optional preloading, load all word lists into memory (~TODO measure MB) +# optional preloading, load all word lists into memory (~41KB) # otherwise every generation would involve reading the files fw.preload() diff --git a/friendlywords/data/objects.txt b/friendlywords/data/objects.txt index 22a45e4..f141f48 100644 --- a/friendlywords/data/objects.txt +++ b/friendlywords/data/objects.txt @@ -318,8 +318,8 @@ boar board boat boater -bobcat bobble +bobcat bobolink bolt bongo @@ -830,12 +830,12 @@ dogwood dollar dolomite dolphin -doppler domain donkey donut doom door +doppler dormouse double dove @@ -1637,11 +1637,11 @@ marmot marquess marquis mars -marscapone marshmallow marsupial marten mascara +mascarpone mask mass mastodon diff --git a/friendlywords/data/predicates.txt b/friendlywords/data/predicates.txt index 03bf5ff..39c67a1 100644 --- a/friendlywords/data/predicates.txt +++ b/friendlywords/data/predicates.txt @@ -176,8 +176,8 @@ canyon capable capricious caramel -carefree carbonated +carefree careful caring carnation diff --git a/friendlywords/friendlywords.py b/friendlywords/friendlywords.py index dc5cf24..1d34ec1 100644 --- a/friendlywords/friendlywords.py +++ b/friendlywords/friendlywords.py @@ -7,7 +7,7 @@ class FriendlyWords(ModuleType): - __version__ = '1.1.2' + __version__ = '1.1.3' DATA_PATH = os.path.join(os.path.dirname(__file__), 'data') WORD_LISTS = { 'p': {