def _in_text(adict):
    """
    Wrapper to add .* around matches so pattern can be found in words.

    Parameters
    ----------
    adict : dict
        Dictonary with key = `pattern`

    Returns
    -------
    wrapped_dict : dict
         Dictonary with key = `.*pattern.*`
    """

    return dict((".*{}.*".format(k), v) for k, v in adict.items())