from typing import Dict


def _join_words(w1: Dict, w2: Dict) -> Dict:
    """Join two word dicts.

    Join the text of two words and correct x dimensions

    Args:
        w1: Left word
        w2: Right word

    Returns:
        Dict: Joined word
    """
    temp = w1
    temp["text"] = w1["text"] + " " + w2["text"]
    temp["x0"] = w1["x0"]
    temp["x1"] = w2["x1"]

    return temp