sprache 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/sprache +12 -11
- data/sprache.rb +14 -13
- metadata +2 -2
data/bin/sprache
CHANGED
@@ -352,19 +352,20 @@ class Sprache
|
|
352
352
|
stimmt = true
|
353
353
|
end
|
354
354
|
end
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
355
|
+
unless @aktion
|
356
|
+
if (woerter.index("kein") or
|
357
|
+
woerter.index("keine") or
|
358
|
+
woerter.index("keinen") or
|
359
|
+
woerter.index("nicht")) and not stimmt
|
360
|
+
woerter.delete("nicht")
|
361
|
+
woerter.delete("kein")
|
362
|
+
woerter.delete("keine")
|
363
|
+
woerter.delete("keinen")
|
364
|
+
elsif not stimmt
|
365
|
+
woerter.insert(2, "nicht")
|
366
|
+
end
|
365
367
|
end
|
366
368
|
end
|
367
|
-
|
368
369
|
p = " "
|
369
370
|
|
370
371
|
if woerter.length == 1
|
data/sprache.rb
CHANGED
@@ -346,25 +346,26 @@ class Sprache
|
|
346
346
|
end
|
347
347
|
@stimmt = stimmt
|
348
348
|
if nicht
|
349
|
-
if stimmt
|
349
|
+
if stimmt
|
350
350
|
stimmt = false
|
351
|
-
else
|
351
|
+
else
|
352
352
|
stimmt = true
|
353
353
|
end
|
354
354
|
end
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
355
|
+
unless @aktion
|
356
|
+
if (woerter.index("kein") or
|
357
|
+
woerter.index("keine") or
|
358
|
+
woerter.index("keinen") or
|
359
|
+
woerter.index("nicht")) and not stimmt
|
360
|
+
woerter.delete("nicht")
|
361
|
+
woerter.delete("kein")
|
362
|
+
woerter.delete("keine")
|
363
|
+
woerter.delete("keinen")
|
364
|
+
elsif not stimmt
|
365
|
+
woerter.insert(2, "nicht")
|
366
|
+
end
|
365
367
|
end
|
366
368
|
end
|
367
|
-
|
368
369
|
p = " "
|
369
370
|
|
370
371
|
if woerter.length == 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|