Repository: joshdavham/jreadability (language: python)

Issue:
Use particles instead of aux verbs; ignore some verbs
In comparison to https://jreadability.net/sys/en:
1) The code previously used aux. verbs when it should use particles
2) The code was considering 非自立可能 verbs when it should be ignoring them


Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index 638c62f..f14d9a8 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
 
 <br />
 
-jreadability allows python developers to calculate the readability of Japanese text using the model developed by Jae-ho Lee and Yoichiro Hasebe in "[Readability measurement of Japanese texts based on levelled corpora](https://researchmap.jp/jhlee/published_papers/21426109)." **Note that this is not an official implementation.**
+jReadability allows python developers to calculate the readability of Japanese text using the model developed by Jae-ho Lee and Yoichiro Hasebe in "[Introducing a readability evaluation system for Japanese language education](https://jreadability.net/file/hasebe-lee-2015-castelj.pdf)." **Note that this is not an official implementation.**
 
 
 ## Installation
@@ -33,7 +33,7 @@ text = 'おはようございます！今日は天気がいいですね。'
 
 score = compute_readability(text)
 
-print(score) # 5.596333333333334
+print(score) # 6.438000000000001
 ```
 
 ## Readability scores
@@ -56,7 +56,7 @@ readability = {mean number of words per sentence} * -0.056
             + {proportion of kango} * -0.126
             + {proportion of wago} * -0.042
             + {proportion of verbs} * -0.145
-            + {proportion of auxiliary verbs} * -0.044
+            + {proportion of particles} * -0.044
             + 11.724
 ```
 
@@ -64,7 +64,7 @@ readability = {mean number of words per sentence} * -0.056
 
 #### Note on model consistency
 
-The readability scores produced by this python package tend to differ slightly from the scores produced on the official [jreadability website](https://jreadability.net/sys/en). This is likely due to the version difference in UniDic between these two implementations as this package uses UniDic 2.1.2 while theirs uses UniDic 2.2.0. This issue will hopefully be resolved in the future.
+The readability scores produced by this python package tend to differ slightly from the scores produced on the official [jreadability website](https://jreadability.net/sys/en). This is likely due to the version difference in UniDic between these two implementations as this package uses UniDic 2.1.2 while theirs uses UniDic 2.2.0. This issue may be resolved in the future.
 
 ## Batch processing
 
@@ -82,4 +82,10 @@ for text in texts:
     score = compute_readability(text, tagger) # fast :D
     #score = compute_readability(text) # slow :'(
     ...
-```
\ No newline at end of file
+```
+
+## Other implementations
+
+The official jReadability implementation can be found on [jreadability.net](https://jreadability.net/)
+
+A node.js implementation can also be found [here](https://github.com/Bennycopter/jreadability).
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 2311407..84cf72a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
 
 [project]
 name = "jreadability"
-version = "1.1.0"
+version = "1.1.1"
 description = "Calculate readability scores for Japanese texts."
 readme = "README.md"
 authors = [{ name = "Joshua Hamilton", email = "hamiltonjoshuadavid@gmail.com" }]


Test patch:
diff --git a/tests/test_jreadability.py b/tests/test_jreadability.py
index 485ab10..e165f29 100644
--- a/tests/test_jreadability.py
+++ b/tests/test_jreadability.py
@@ -71,19 +71,17 @@ def test_lower_intermediate(self):
 
         assert 3.5 <= score < 4.5
 
-    # test currently failing (score=4.19)
-    #def test_upper_elementary(self):
-    #
-    #    score = compute_readability(upper_elementary_text)
-    #
-    #    assert 4.5 <= score < 5.5
-
-    # test currently failing (score=5.12)
-    #def test_lower_elementary(self):
-    #    
-    #    score = compute_readability(lower_elementary_text)
-    #
-    #    assert 5.5 <= score < 6.5
+    def test_upper_elementary(self):
+    
+        score = compute_readability(upper_elementary_text)
+    
+        assert 4.5 <= score < 5.5
+
+    def test_lower_elementary(self):
+        
+        score = compute_readability(lower_elementary_text)
+    
+        assert 5.5 <= score < 6.5
 
     def test_batch(self):