def get_lang(doc):
    """
    Get the standard, two-letter language code assigned to ``doc``
    and its associated :class:`spacy.vocab.Vocab`.

    Returns:
        str
    """
    return doc.vocab.lang