def _is_next_word(prev_word, x, y):
    """Checks if previous - current word are located correctly."""
    if (prev_word.x + prev_word.width + 10 >= x and y - 5 <= prev_word.y <=
        y + 5):
        return True
    return False
