ikku 0.1.3 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3ad0522cf51cd1dd41019d18ac9a3e35750bf7a
4
- data.tar.gz: 5feba93c64c1d9b43e1073dfbd6d5a83639d9bd8
3
+ metadata.gz: f0d3e116ef5431d2a28dde529ea5f1b293b0a80e
4
+ data.tar.gz: c75ce8cefce3753703f31e9f21b43b903ce79c5d
5
5
  SHA512:
6
- metadata.gz: 9f7163c4bd6d70cd0fbbc7de9a5b50dfa9c61f85137f1c7d9bdcb42009d2a68595bcbf13a20554e440c314f0a7bd76f0664c22894f4c6b3af2673e1df1a6550f
7
- data.tar.gz: 2b66ef9219150bf5a33673b69b02af79cc5693ca0303f31d4486f0aa6a8013f12aaaa3de8b125b4261b80da30740be5944f119534d1a13cef33e7d4a98d3e00e
6
+ metadata.gz: 16c56626a18b77685136052563d75ff05b08ced79c6b787a44fa9c2a201da4d4e6e9fa6420c6e455f03e9a9a0cec6050bb0b21fb595546514d2c596790796156
7
+ data.tar.gz: f061a0910d8a87b82020c904ba58e5d088d4889c30c2c9cd374905f2e602e11c515e40ec88e9bb5f62dfab7b2c8d8634b0111053f971c83deee20f83a6446795
@@ -1,3 +1,6 @@
1
+ ## 0.1.4
2
+ - Don't allow song ending with ん as 非自立名詞
3
+
1
4
  ## 0.1.3
2
5
  - Don't allow song ending with 未然形
3
6
 
@@ -78,6 +78,8 @@ module Ikku
78
78
  false
79
79
  when type == "動詞" && ["仮定形", "未然形"].include?(conjugation2)
80
80
  false
81
+ when type == "名詞" && subtype1 == "非自立" && pronunciation == "ン"
82
+ false
81
83
  else
82
84
  true
83
85
  end
@@ -1,3 +1,3 @@
1
1
  module Ikku
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -61,6 +61,14 @@ RSpec.describe Ikku::Reviewer do
61
61
 
62
62
  it { is_expected.to be_nil }
63
63
  end
64
+
65
+ context "with song ending with ん as 非自立名詞" do
66
+ let(:text) do
67
+ "古池や蛙飛び込むかかったんだ"
68
+ end
69
+
70
+ it { is_expected.to be_nil }
71
+ end
64
72
  end
65
73
 
66
74
  describe "#judge" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ikku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura