Anyone who wants the whole story, since there's misinfo/cherry-picked info flying both ways (god I sound like a fucking centrist please believe me I hate elon musk and everything he stands for and cant wait for the collapse of the imperial powers)
The code defines a default list of "bad words" which includes the names of some communities they consider low effort
seven_things_plus = [
'shit', 'piss', 'fuck',
'cunt', 'cocksucker', 'motherfucker', 'tits',
'memes', 'piracy', 'greentext', 'usauthoritarianism',
'enoughmuskspam', 'political_weirdos', '4chan'
]
And filters these bad words/low effort communities out by default
# sort out the 'seven things you can't say on tv' names (cursewords), plus some
# "low effort" communities
if any(badword in community['name'].lower() for badword in seven_things_plus):
bad_words_count += 1
continue
else:
candidate_communities.append(community)
Decide for yourself if you think that community qualifies as low effort, but it isn't a "hardcode" in the way most people think of it. Its just as much of a hardcode as setting default values for any other variable in your function definition.
Really got me there comrade