<commit_before>::vowel:: = aäeioöuü
::consonant:: = b|c|ch|ck|d|dt|f|g|h|j|k|l|m|n|p|pf|r|s|sch|t|tsch|tz|tzsch|v|w|z

% -tion for Latin loanwords
t -> ts / _ ion

% Initial voicing of <s>
s -> z / # _ [::vowel::]

% Final obstruent devoicing
b -> p / _ #|(::consonant::)[::vowel::]
d -> t / _ #|(::consonant::)[::vowel::]
g -> k / _ #|(::consonant::)[::vowel::]

% Handling of r
r -> 0 / e _ #
r -> ə / [äeioöuü] _ #|(::consonant::)
r -> 0 / a _ #|(::consonant::)
r -> ʁ / # _
r -> ʁ / (::consonant::) _ [::vowel::]
r -> ʀ / [::vowel::] _ [::vowel::]

% r should never appear between consonants but just in case... we also don't want r showing up ever
r -> 0 / _

% Final schwa
e -> ə / _ #

% Open syllable lengthening
i -> ie / _ #|(::consonant::)[::vowel::]
e -> ee / _ #|(::consonant::)[::vowel::]
ü -> üh / _ #|(::consonant::)[::vowel::]
ö -> öo / _ #|(::consonant::)[::vowel::]
u -> uh / _ #|(::consonant::)[::vowel::]
o -> oo / _ #|(::consonant::)[::vowel::]
a -> aa / _ #|(::consonant::)[::vowel::]<commit_msg>fix german long vowel preprocessing issue<commit_after>::vowel:: = aäeioöuü
::consonant:: = b|c|ch|ck|d|dt|f|g|h|j|k|l|m|n|p|pf|r|s|sch|t|tsch|tz|tzsch|v|w|z

% -tion for Latin loanwords
t -> ts / _ ion

% Initial voicing of <s>
s -> z / # _ [::vowel::]

% Final obstruent devoicing
b -> p / _ #|(::consonant::)[::vowel::]
d -> t / _ #|(::consonant::)[::vowel::]
g -> k / _ #|(::consonant::)[::vowel::]

% Handling of r
r -> 0 / e _ #
r -> ə / [äeioöuü] _ #|(::consonant::)
r -> 0 / a _ #|(::consonant::)
r -> ʁ / # _
r -> ʁ / (::consonant::) _ [::vowel::]
r -> ʀ / [::vowel::] _ [::vowel::]

% r should never appear between consonants but just in case... we also don't want r showing up ever
r -> 0 / _

% Final schwa
e -> ə / _ #

% Open syllable lengthening
i -> ie / [^i] _ #|(::consonant::)[::vowel::]
e -> ee / [^e] _ #|(::consonant::)[::vowel::]
ü -> üh / [^ü] _ #|(::consonant::)[::vowel::]
ö -> öo / [^ö] _ #|(::consonant::)[::vowel::]
u -> uh / [^u] _ #|(::consonant::)[::vowel::]
o -> oo / [^o] _ #|(::consonant::)[::vowel::]
a -> aa / [^a] _ #|(::consonant::)[::vowel::]
{'fraction_non_alphanumeric': 0.29938124702522606, 'fraction_numerical': 0.0028557829604950024, 'mean_word_length': 3.5399568034557234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1336292', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1038, 'n_words': 215}