diff --git a/.gitignore b/.gitignore index f92911cd5..45743de30 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ build/* *.egg *.rdb .coverage +proselint/proselint_develop.sublime-project +proselint/proselint_develop.sublime-workspace diff --git a/proselint/.proselintrc b/proselint/.proselintrc index ce8be9be0..150b4bb09 100644 --- a/proselint/.proselintrc +++ b/proselint/.proselintrc @@ -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, diff --git a/proselint/checks/szekely/__init__.py b/proselint/checks/szekely/__init__.py new file mode 100644 index 000000000..515668aa8 --- /dev/null +++ b/proselint/checks/szekely/__init__.py @@ -0,0 +1 @@ +u"""Advice from Louis C.K.""" diff --git a/proselint/checks/szekely/nword.py b/proselint/checks/szekely/nword.py new file mode 100644 index 000000000..44cd94b1e --- /dev/null +++ b/proselint/checks/szekely/nword.py @@ -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)