Skip to content

Commit

Permalink
pona: o lili e pana lon ilo Config
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdan3 committed Aug 15, 2024
1 parent 75eb5d8 commit 972fce7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/sonatoki/Configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
Punctuation,
LongSyllabic,
Miscellaneous,
NimiLinkuCore,
LongAlphabetic,
LongProperName,
NimiLinkuCommon,
FalsePosSyllabic,
NimiLinkuByUsage,
NimiLinkuObscure,
NimiLinkuSandbox,
NimiLinkuUncommon,
Expand Down Expand Up @@ -99,7 +98,7 @@ class IloConfig(TypedDict):
"cleaners": [ConsecutiveDuplicates],
"ignoring_filters": [Numeric, Punctuation],
"scoring_filters": [
Or(NimiLinkuCore, NimiLinkuCommon, NimiLinkuUncommon, NimiUCSUR),
Or(NimiLinkuByUsage(30), NimiUCSUR),
And(LongSyllabic, Not(FalsePosSyllabic)),
# NOTE: These are allowed to pass name and alphabetic below, because they *could* be wrong
LongProperName,
Expand All @@ -115,11 +114,8 @@ class IloConfig(TypedDict):
"ignoring_filters": [Numeric, Punctuation],
"scoring_filters": [
Or(
NimiLinkuCore,
NimiLinkuCommon,
NimiLinkuUncommon,
NimiLinkuObscure(sub=__DICT_PHONOMATCHES),
NimiLinkuSandbox(sub=__DICT_PHONOMATCHES),
# awkward but efficient syntax
NimiLinkuByUsage(0)(sub=__DICT_PHONOMATCHES),
NimiUCSUR,
Miscellaneous,
),
Expand Down

0 comments on commit 972fce7

Please sign in to comment.