Skip to content

Commit

Permalink
Fix greek splittings of oude, mede, eite
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Aug 25, 2014
1 parent 6f406b5 commit a4a810f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/llt/tokenizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def enclitic(val)
/^(ne)(c)$/i,
/^(ne|se)(u)$/i,
/^(ni)(si)$/i,
/^(οὐ|μή|εἰ)(τε)$/i,
/^(οὐ|μή)(δε)$/i
/^(οὔ|μή|εἴ)(τε)$/i,
/^(οὐ|μή)(δ[ὲέε])$/i
]
def split_frequent_enclitics
container = []
Expand Down
7 changes: 4 additions & 3 deletions spec/lib/llt/tokenizer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ def enklitika_test(example)

context "when confronted with -τε" do
examples = {
'οὐτε' => '-τε οὐ',
'οὔτε' => '-τε οὔ',
'μήτε' => '-τε μή',
'εἰτε' => '-τε εἰ'
'εἴτε' => '-τε εἴ'
}

examples.each do |example, expected|
Expand All @@ -302,7 +302,8 @@ def enklitika_test(example)

context "when confronted with -δε" do
examples = {
'οὐδε' => '-δε οὐ',
'οὐδέ' => '-δέ οὐ',
'οὐδὲ' => '-δὲ οὐ',
'μήδε' => '-δε μή'
}

Expand Down

0 comments on commit a4a810f

Please sign in to comment.