code: def get_frequency_list(lang, wordlist='best', match_cutoff=30):
      
      available = available_languages(wordlist)
      best, score = langcodes.best_match(lang, list(available),
                                         min_score=match_cutoff)
      if score == 0:
          raise LookupError("No wordlist %r available for language %r"
                            % (wordlist, lang))
  
      if best != lang:
          logger.warning(
              "You asked for word frequencies in language %r. Using the "
              "nearest match, which is %r (%s)."
              % (lang, best, langcodes.get(best).language_name('en'))
          )
  
      return read_cBpack(available[best])
docs: Read the raw data from a wordlist file, returning it as a list of
      lists. (See `read_cBpack` for what this represents.)
  
      Because we use the `langcodes` module, we can handle slight
      variations in language codes. For example, looking for 'pt-BR',
      'pt_br', or even 'PT_BR' will get you the 'pt' (Portuguese) list.
      Looking up the alternate code 'por' will also get the same list.