Skip to content

Commit

Permalink
Add tl;dr and its German variant zl;ng
Browse files Browse the repository at this point in the history
  • Loading branch information
tsproisl committed Apr 9, 2020
1 parent 2e1bfdf commit a3f80f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion somajo/single_token_abbreviations_de.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ röm.-kath.
Uni-Kl.
USt-IdNr.

# Custom Abbreviations
# These should be moved to another file:
.Net
E/E
tl;dr
zl;ng

# SAP Versions
S/4
Expand Down
3 changes: 3 additions & 0 deletions somajo/single_token_abbreviations_en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ a.m.
p.m.
P.S.
T.V.

# These should be moved to another file:
tl;dr
3 changes: 3 additions & 0 deletions somajo/test/test_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ def test_abbreviations_12(self):
def test_abbreviations_13(self):
self._equal("Bruce Springsteen aka The Boss", "Bruce Springsteen aka The Boss")

def test_abbreviations_14(self):
self._equal("Englisch: tl;dr. Deutsch: zl;ng.", "Englisch : tl;dr . Deutsch : zl;ng .")


class TestTypos(TestTokenizer):
""""""
Expand Down

0 comments on commit a3f80f6

Please sign in to comment.