from bs4 import BeautifulSoup


def get_disambiguation_results(markup):
    """
    Gets the disambiguation results from a disambiguation page.

    Keyword arguments:
    markup -- a string containing the markup for the page

    Returns:
    An array of strings that are pages the search term could refer to.

    """

    soup = BeautifulSoup(markup, 'html.parser')

    anchorTags = soup.select('.mw-parser-output ul li a')

    anchorTags = filter(lambda a: 'title' in a.attrs, anchorTags)

    return map(lambda x: x.attrs['title'], anchorTags)