title: NLTK stopwords languages
body: <p>I'm working with several languages and for some of them I have a list of stopwords in NLTK but not for others.</p>
  
  <p>How can I check from code if a language is available in nltk.corpus.stopwords.words("language")?</p>
  
  <p>I'd like to do this without managing exceptions when a given language is not found.</p>
  
  <p>Something like this:</p>
  
  <pre><code>if "language" in nltk.corpus.stopwords.languages:
     sw = nltk.corpus.stopwords.words("language")
  else:
     sw = []
  ...
  </code></pre>