dataculturegroup / DataBasic

A suite of focused and simple tools and activities for journalists, data journalism classrooms and community advocacy groups
http://www.databasic.io/
MIT License
62 stars 16 forks source link

Fix for wordcounter in en_GB #408

Closed drkane closed 7 months ago

drkane commented 7 months ago

I found that wordcounter wasn't working because my language was set to en_GB and it wasn't finding the stopwords list.

This PR does two things:

  1. Selects the english stopword list for en_GB language
  2. Falls back to english stopword list if the language isn't found (this might not be desired behaviour - potentially it's better to fallback to no stopword list at all?)