-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from amperser/szekely
Add Louis C.K.'s rule on the n-word
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
u"""Advice from Louis C.K.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
"""On 'the N word'. | ||
--- | ||
layout: post | ||
source: Louis CK | ||
source_url: https://youtu.be/dF1NUposXVQ?t=30s | ||
title: the 'n-word' | ||
date: 2014-06-10 12:31:19 | ||
categories: writing | ||
--- | ||
Take responsibility with the shitty words you wanna say. | ||
""" | ||
from tools import existence_check, memoize | ||
|
||
|
||
@memoize | ||
def check_repeated_exclamations(text): | ||
"""Check the text.""" | ||
err = "skekely.nword" | ||
msg = u"Take responsibility for the shitty words you want to say." | ||
|
||
list = [ | ||
"the n-word", | ||
] | ||
|
||
return existence_check(text, list, err, msg) |