Skip to content

Commit 988bbab

Browse files
Remove deprecated KLUDGY_ORDINALS exports for tokenizer 3.6.0 compatibility
- Remove KLUDGY_ORDINALS_* constants from imports and exports in __init__.py - Update test_kludgy_ordinals test to not use removed handle_kludgy_ordinals param - Add uv.lock and .python-version to .gitignore - Update copyright year to 2025 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d824168 commit 988bbab

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ p359/
9292
p37/
9393
pypy*
9494

95+
# uv stuff
96+
uv.lock
97+
.python-version
98+
9599
# Installer logs
96100
pip-log.txt
97101
pip-delete-this-directory.txt

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ del %TEMP%\greynir-grammar
198198

199199
## Copyright and licensing
200200

201-
Greynir is Copyright © 2016-2024 by [Miðeind ehf.](https://mideind.is).
201+
Greynir is Copyright © 2016-2025 by [Miðeind ehf.](https://mideind.is).
202202
The original author of this software is *Vilhjálmur Þorsteinsson*.
203203

204204
<a href="https://mideind.is"><img src="https://raw.githubusercontent.com/mideind/GreynirEngine/master/doc/_static/mideind-horizontal-small.png" alt="Miðeind ehf."

src/reynir/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@
7373
TP_RIGHT,
7474
TP_NONE,
7575
TP_WORD,
76-
KLUDGY_ORDINALS_PASS_THROUGH,
77-
KLUDGY_ORDINALS_MODIFY,
78-
KLUDGY_ORDINALS_TRANSLATE,
7976
)
8077
from tokenizer.abbrev import Abbreviations
8178

@@ -89,9 +86,6 @@
8986
"TP_CENTER",
9087
"TP_NONE",
9188
"TP_WORD",
92-
"KLUDGY_ORDINALS_MODIFY",
93-
"KLUDGY_ORDINALS_PASS_THROUGH",
94-
"KLUDGY_ORDINALS_TRANSLATE",
9589
"Greynir",
9690
"Reynir",
9791
"Terminal",

test/test_parse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_parse(r: Greynir, verbose: bool = False) -> None:
105105
"Eftir vanfjármögnun úrbóta sl. kjörtímabil, í margyfirlýstu góðæri "
106106
"þar sem fjárlagafrumvarp 2017 var samt undir núlli tekjumegin, "
107107
"er deginum ljósara að mikla viðbótarfjármögnun þarf svo koma megi "
108-
"mörgu í betra horf á næstu 1-2 árum.",
108+
"mörgu í betra horf á næstu 1 - 2 árum.",
109109
# 22
110110
"Lögreglan fer ekki nánar ofan í það hvaða skemmdir það voru.",
111111
# 23
@@ -2023,9 +2023,9 @@ def test_company(r):
20232023

20242024

20252025
def test_kludgy_ordinals():
2026-
from reynir import Greynir, KLUDGY_ORDINALS_PASS_THROUGH
2026+
from reynir import Greynir
20272027

2028-
r2 = Greynir(handle_kludgy_ordinals=KLUDGY_ORDINALS_PASS_THROUGH)
2028+
r2 = Greynir()
20292029
s = r2.parse_single(
20302030
"Hann keypti 3ja herbergja íbúð á 1stu hæðinni "
20312031
"en hún átti 2ja strokka mótorhjól af 4ðu kynslóð."

0 commit comments

Comments
 (0)