equal
deleted
inserted
replaced
73 } |
73 } |
74 $letters = implode('', $letters); |
74 $letters = implode('', $letters); |
75 $words = explode(' ', $letters); |
75 $words = explode(' ', $letters); |
76 foreach($words as $c => $w) |
76 foreach($words as $c => $w) |
77 { |
77 { |
78 if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63) |
78 if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63 || preg_match('/[\']{2,}/', $w)) |
79 unset($words[$c]); |
79 unset($words[$c]); |
80 else |
80 else |
81 $words[$c] = $w; |
81 $words[$c] = $w; |
82 } |
82 } |
83 $words = array_values($words); |
83 $words = array_values($words); |