BUGFIX: inconsistent results in extract_words and split_boundaries