AllenEllis / EverySingleMonth

Meme Generator for Every Single Month
https://everysinglemonth.org
MIT License
8 stars 6 forks source link

Filter out extraneous words from results #11

Closed AllenEllis closed 4 years ago

AllenEllis commented 4 years ago

Certain results from DataUSA include the word "(balance)" and it's pretty ugly. Just search for "balance" on everysinglemonth.org and you'll see a lot of them. Here's a good example:

Louisville/Jefferson County metro government (balance)

16000US2148006_63982b

It's a low priority item, but I think the move would be to add some logic into get_meta() https://github.com/AllenEllis/EverySingleMonth/blob/58f39090697a7e69406ba3453c51bed212d9ca7d/sources/datausa.php#L144

Stripping out any use of "metro government" and "(balance)", and then running that through trim() to remove any whitespace from the beginning or end of the string.

AllenEllis commented 4 years ago

Here are a few others that should have some of the words filtered out: