ikku 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4186a5706c4014ef2dc6ac0738e93ef39e548f3d
4
- data.tar.gz: 91da30ecd5430d0a3cef04c40fb8df78a6d6c08a
3
+ metadata.gz: 22aee24e6347f65153b11dd405c9df50de3bd5eb
4
+ data.tar.gz: 42223dfaa6d77262576dbb7fcd8df89d205fc60c
5
5
  SHA512:
6
- metadata.gz: d8926c58122478c30e3226b888a51494fc9a552d8fdabe49f7f310a9bedeefc16dc275d76e4e1212b752f39f14f056866abcc027be7d11b2aabb474563d67dd0
7
- data.tar.gz: 46213e3d2fae5cd31467d01236bb9efbe1bb513d4be587f249f0ae8f41d1ea2cd45a005138c72cee3d152df834015a540bd472beb370dbed0d6788bb49f38094
6
+ metadata.gz: 4afd058057afd673f00c5a852bd82674b67a0984ff0b58fa83a9e7c874096b7de4b0cee436275113a91b1353f3db9c65fe6f64d596606af749e45128dc2288a7
7
+ data.tar.gz: 01c2e3e498a0b39443f7d719ab60869894557c5f64323c534df6003979343f50deae0302b70b65adf0d7f05926cf1323c11b12ab6cb792fcdaef16748b8a02d5
@@ -1,3 +1,6 @@
1
+ ## 0.0.6
2
+ - Don't allow English words in ikku
3
+
1
4
  ## 0.0.5
2
5
  - Improve pattern about 自立・非自立・助動詞
3
6
 
@@ -24,6 +24,10 @@ module Ikku
24
24
  stat == STAT_ID_FOR_EOS
25
25
  end
26
26
 
27
+ def element_of_ikku?
28
+ normal?
29
+ end
30
+
27
31
  def feature
28
32
  @feature ||= CSV.parse(@node.feature)[0]
29
33
  end
@@ -37,6 +37,8 @@ module Ikku
37
37
  case
38
38
  when node.pronounciation_length > max_consumable_length
39
39
  false
40
+ when !node.element_of_ikku?
41
+ false
40
42
  when first_of_phrase? && !node.first_of_phrase?
41
43
  false
42
44
  else
@@ -1,3 +1,3 @@
1
1
  module Ikku
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -83,6 +83,14 @@ RSpec.describe Ikku::Reviewer do
83
83
 
84
84
  it { is_expected.to be true }
85
85
  end
86
+
87
+ context "with phrase including English" do
88
+ let(:text) do
89
+ "Apple#{super()}"
90
+ end
91
+
92
+ it { is_expected.to be false }
93
+ end
86
94
  end
87
95
 
88
96
  describe "#search" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ikku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: natto