Return text in dot.case style.

    Args:
        text: input string to convert case
        detect_acronyms: should attempt to detect acronyms
        acronyms: a list of acronyms to detect

    >>> dotcase("hello world")
    'hello.world'
    >>> dotcase("helloHTMLWorld", True, ["HTML"])
    'hello.html.world'

def dotcase(text, acronyms=None):
    """Return text in dot.case style.

    Args:
        text: input string to convert case
        detect_acronyms: should attempt to detect acronyms
        acronyms: a list of acronyms to detect

    >>> dotcase("hello world")
    'hello.world'
    >>> dotcase("helloHTMLWorld", True, ["HTML"])
    'hello.html.world'
    """
    words, _case, _sep = case_parse.parse_case(text, acronyms)
    return '.'.join([w.lower() for w in words])