Passed
Branch unit-tests (e380e8)
by Ekin
04:26
created
src/BrillTagger.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@  discard block
 block discarded – undo
98 98
         return substr(trim($tag), 0, 1) == 'N';
99 99
     }
100 100
 
101
+    /**
102
+     * @param string $tag
103
+     */
101 104
     public function isSingularNoun($tag) {
102 105
         return $tag == 'NN';
103 106
     }
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         return ($this->isNoun($tag) && substr($token, -1) == 's');
107 110
     }
108 111
 
112
+    /**
113
+     * @param string $tag
114
+     */
109 115
     public function isVerb($tag) {
110 116
         return substr(trim($tag), 0, 2) == 'VB';
111 117
     }
@@ -169,6 +175,10 @@  discard block
 block discarded – undo
169 175
     }
170 176
 
171 177
     # Common noun to adj. if it ends with 'al', to gerund if 'ing', to past tense if 'ed'
178
+
179
+    /**
180
+     * @param string $tag
181
+     */
172 182
     public function transformNoun($tag, $token) {
173 183
 
174 184
         if ($this->isAdjective($token)) {
Please login to merge, or discard this patch.