Skip to content

Commit

Permalink
Merge pull request #159 from amperser/szekely
Browse files Browse the repository at this point in the history
Add Louis C.K.'s rule on the n-word
  • Loading branch information
suchow committed Sep 27, 2015
2 parents 3213ea0 + 7299487 commit d4d987e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ build/*
*.egg
*.rdb
.coverage
proselint/proselint_develop.sublime-project
proselint/proselint_develop.sublime-workspace
1 change: 1 addition & 0 deletions proselint/.proselintrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"pinker.metaconcepts" : true,
"pinker.narcisissm" : true,
"pinker.scare_quotes" : true,
"szekely.nword" : true,
"strunk_white.composition" : true,
"strunk_white.greylist" : true,
"strunk_white.usage" : true,
Expand Down
1 change: 1 addition & 0 deletions proselint/checks/szekely/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
u"""Advice from Louis C.K."""
29 changes: 29 additions & 0 deletions proselint/checks/szekely/nword.py
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)

0 comments on commit d4d987e

Please sign in to comment.