def apply_filters(stopwords, language):
    """
    Apply registered filters to stopwords
    :param stopwords: list
    :param language: string
    :return: filtered stopwords
    """
    if language in _filters:
        for func in _filters[language]:
            stopwords = func(stopwords)

    for func in _filters[None]:
        stopwords = func(stopwords, language)

    return stopwords