From 0617768ee2f90bb5a5a73bb05b86d3c4bf6c074a Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 13 Aug 2018 21:22:45 +0200 Subject: [PATCH] Fix partial word computation Partial word tokens have a space at the beginning of the token not the word. --- lib/TokenList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TokenList.php b/lib/TokenList.php index 67d94edd..a5b3c2d2 100644 --- a/lib/TokenList.php +++ b/lib/TokenList.php @@ -138,7 +138,7 @@ class TokenList } else { $oToken = new Token\Word( $iId, - $aWord['word'][0] != ' ', + $aWord['word_token'][0] != ' ', (int) $aWord['count'] ); } -- 2.39.5