Lexitron 3.2.0__tar.gz → 3.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lexitron-3.2.0 → lexitron-3.3.0}/Lexitron.egg-info/PKG-INFO +11 -4
- {lexitron-3.2.0 → lexitron-3.3.0}/PKG-INFO +11 -4
- {lexitron-3.2.0 → lexitron-3.3.0}/README.md +10 -3
- lexitron-3.3.0/lexitron/words.tsv.gz +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/pyproject.toml +1 -1
- {lexitron-3.2.0 → lexitron-3.3.0}/tests/test_lexitron.py +8 -1
- lexitron-3.2.0/lexitron/words.tsv.gz +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/LICENSE +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/Lexitron.egg-info/SOURCES.txt +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/Lexitron.egg-info/dependency_links.txt +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/Lexitron.egg-info/entry_points.txt +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/Lexitron.egg-info/not-zip-safe +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/Lexitron.egg-info/top_level.txt +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/lexitron/SCOWL-Copyright.txt +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/lexitron/__init__.py +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/lexitron/lexitron.py +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/setup.cfg +0 -0
- {lexitron-3.2.0 → lexitron-3.3.0}/tests/test_readme.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Lexitron
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: A command-line regex search engine for the English language
|
|
5
5
|
Author: Rothos
|
|
6
6
|
License: GNU GPL Version 2
|
|
@@ -75,7 +75,9 @@ within a word, use `-s` (so `lx -s cat` finds "cat", "catalog", "bobcat",
|
|
|
75
75
|
etc).
|
|
76
76
|
|
|
77
77
|
Inflected forms (plurals, conjugations, etc, like "went" or "oxen") are
|
|
78
|
-
searched along with base forms. Use `-b` to search base forms only.
|
|
78
|
+
searched along with base forms. Use `-b` to search base forms only. Phrases
|
|
79
|
+
with spaces are listed in their base form only ("sperm whale", not "sperm
|
|
80
|
+
whales").
|
|
79
81
|
|
|
80
82
|
Searches are case-insensitive unless you use `-c`. Options can go before or
|
|
81
83
|
after the expression. Quote the expression (`'...'`) so your shell doesn't
|
|
@@ -437,11 +439,9 @@ cupcake
|
|
|
437
439
|
```
|
|
438
440
|
$ lx -P 'sperm.*'
|
|
439
441
|
sperm bank
|
|
440
|
-
sperm banks
|
|
441
442
|
sperm cell
|
|
442
443
|
sperm oil
|
|
443
444
|
sperm whale
|
|
444
|
-
sperm whales
|
|
445
445
|
spermatic cord
|
|
446
446
|
```
|
|
447
447
|
|
|
@@ -457,6 +457,13 @@ Using Lexitron from Python
|
|
|
457
457
|
`search()` takes the same options as the command line; see its docstring.
|
|
458
458
|
|
|
459
459
|
|
|
460
|
+
Changes in version 3.3
|
|
461
|
+
------------------------------------------------------------------------------
|
|
462
|
+
- Phrases with spaces are listed in their base form only: "sperm whale" but
|
|
463
|
+
not "sperm whales". SCOWL lists inflected forms for only a few phrases, so
|
|
464
|
+
they're left out for consistency. Hyphenated words keep theirs ("x-rayed").
|
|
465
|
+
|
|
466
|
+
|
|
460
467
|
Changes in version 3.2
|
|
461
468
|
------------------------------------------------------------------------------
|
|
462
469
|
- New option `-P` searches only phrases and hyphenated entries, like
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Lexitron
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: A command-line regex search engine for the English language
|
|
5
5
|
Author: Rothos
|
|
6
6
|
License: GNU GPL Version 2
|
|
@@ -75,7 +75,9 @@ within a word, use `-s` (so `lx -s cat` finds "cat", "catalog", "bobcat",
|
|
|
75
75
|
etc).
|
|
76
76
|
|
|
77
77
|
Inflected forms (plurals, conjugations, etc, like "went" or "oxen") are
|
|
78
|
-
searched along with base forms. Use `-b` to search base forms only.
|
|
78
|
+
searched along with base forms. Use `-b` to search base forms only. Phrases
|
|
79
|
+
with spaces are listed in their base form only ("sperm whale", not "sperm
|
|
80
|
+
whales").
|
|
79
81
|
|
|
80
82
|
Searches are case-insensitive unless you use `-c`. Options can go before or
|
|
81
83
|
after the expression. Quote the expression (`'...'`) so your shell doesn't
|
|
@@ -437,11 +439,9 @@ cupcake
|
|
|
437
439
|
```
|
|
438
440
|
$ lx -P 'sperm.*'
|
|
439
441
|
sperm bank
|
|
440
|
-
sperm banks
|
|
441
442
|
sperm cell
|
|
442
443
|
sperm oil
|
|
443
444
|
sperm whale
|
|
444
|
-
sperm whales
|
|
445
445
|
spermatic cord
|
|
446
446
|
```
|
|
447
447
|
|
|
@@ -457,6 +457,13 @@ Using Lexitron from Python
|
|
|
457
457
|
`search()` takes the same options as the command line; see its docstring.
|
|
458
458
|
|
|
459
459
|
|
|
460
|
+
Changes in version 3.3
|
|
461
|
+
------------------------------------------------------------------------------
|
|
462
|
+
- Phrases with spaces are listed in their base form only: "sperm whale" but
|
|
463
|
+
not "sperm whales". SCOWL lists inflected forms for only a few phrases, so
|
|
464
|
+
they're left out for consistency. Hyphenated words keep theirs ("x-rayed").
|
|
465
|
+
|
|
466
|
+
|
|
460
467
|
Changes in version 3.2
|
|
461
468
|
------------------------------------------------------------------------------
|
|
462
469
|
- New option `-P` searches only phrases and hyphenated entries, like
|
|
@@ -56,7 +56,9 @@ within a word, use `-s` (so `lx -s cat` finds "cat", "catalog", "bobcat",
|
|
|
56
56
|
etc).
|
|
57
57
|
|
|
58
58
|
Inflected forms (plurals, conjugations, etc, like "went" or "oxen") are
|
|
59
|
-
searched along with base forms. Use `-b` to search base forms only.
|
|
59
|
+
searched along with base forms. Use `-b` to search base forms only. Phrases
|
|
60
|
+
with spaces are listed in their base form only ("sperm whale", not "sperm
|
|
61
|
+
whales").
|
|
60
62
|
|
|
61
63
|
Searches are case-insensitive unless you use `-c`. Options can go before or
|
|
62
64
|
after the expression. Quote the expression (`'...'`) so your shell doesn't
|
|
@@ -418,11 +420,9 @@ cupcake
|
|
|
418
420
|
```
|
|
419
421
|
$ lx -P 'sperm.*'
|
|
420
422
|
sperm bank
|
|
421
|
-
sperm banks
|
|
422
423
|
sperm cell
|
|
423
424
|
sperm oil
|
|
424
425
|
sperm whale
|
|
425
|
-
sperm whales
|
|
426
426
|
spermatic cord
|
|
427
427
|
```
|
|
428
428
|
|
|
@@ -438,6 +438,13 @@ Using Lexitron from Python
|
|
|
438
438
|
`search()` takes the same options as the command line; see its docstring.
|
|
439
439
|
|
|
440
440
|
|
|
441
|
+
Changes in version 3.3
|
|
442
|
+
------------------------------------------------------------------------------
|
|
443
|
+
- Phrases with spaces are listed in their base form only: "sperm whale" but
|
|
444
|
+
not "sperm whales". SCOWL lists inflected forms for only a few phrases, so
|
|
445
|
+
they're left out for consistency. Hyphenated words keep theirs ("x-rayed").
|
|
446
|
+
|
|
447
|
+
|
|
441
448
|
Changes in version 3.2
|
|
442
449
|
------------------------------------------------------------------------------
|
|
443
450
|
- New option `-P` searches only phrases and hyphenated entries, like
|
|
Binary file
|
|
@@ -134,7 +134,14 @@ def test_only_phrases():
|
|
|
134
134
|
|
|
135
135
|
def test_only_phrases_flag(capsys):
|
|
136
136
|
main(['-P', 'sperm wh.*'])
|
|
137
|
-
assert capsys.readouterr().out == 'sperm whale\
|
|
137
|
+
assert capsys.readouterr().out == 'sperm whale\n'
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def test_phrases_have_no_inflections():
|
|
141
|
+
# SCOWL lists them for only a few phrases, so the word list leaves them out
|
|
142
|
+
assert common('sperm banks?', phrases=True) == ['sperm bank']
|
|
143
|
+
# Hyphenated words keep theirs
|
|
144
|
+
assert 'x-rayed' in common('x-ray.*', phrases=True)
|
|
138
145
|
|
|
139
146
|
|
|
140
147
|
# Inflected forms
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|