def filter_vocabulary_by_frequency(words, word_freq, frequency):
    """
    Method to remove less frequent words in vocabulary

    parameters
    -----------
    :param words: list
    :param word_freq: dictionary
        Dictionary of words and their corresponding counts (word:count)
    :param frequency: int
        Frequency threshold
        Words with less count than the threshold will be removed.
    :return: list
        List of words with high frequency
    """
    if frequency == 0:
        return words

    filtered_words = []
    for word in words:
        if word in word_freq and (int(word_freq[word]) >= frequency):
            filtered_words.append(word)
    return filtered_words