'Convenience method to check if this vocabulary exactly contains the
phrases passed to this method.
Arguments:
phrases -- a list of phrases
Returns:
True if phrases exactly matches the phrases inside this
vocabulary.'

def matches_phrases(self, phrases):

    return (self.compiled_revision == self.phrases_to_revision(phrases))
