from typing import Dict


def getLanguage(infobox: Dict[str, str]) -> str:
    """Guess the language of an IJ's title.

    Returns 'eng' or 'all'. This affects which LTWA rules we use when
    selecting the abbrevISO computed abbreviation.
    We assume the title is English if the country is anglophone and the
    language parameter does not specify sth else. Note there are
    non-English titles with the language infobox parameter set to
    English, because they publish in English only.
    """
    englishCountries = ['United States', 'U.S.', 'U. S.', 'USA', 'U.S.A', 'US',
                        'United Kingdom', 'UK', 'England', 'UK & USA',
                        'New Zealand', 'Australia']
    lang = infobox.get('language', '')
    if not lang.strip() or lang.startswith('English'):
        if infobox.get('country', '') in englishCountries:
            return 'eng'
    return 'all'