| 1 |
"""Psychological and psychiatric terms to avoid. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: Scott O. Lilienfeld, et al. |
| 6 |
source_url: http://dx.doi.org/10.3389/fpsyg.2015.01100 |
| 7 |
title: psychological and psychiatric terms to avoid |
| 8 |
date: 2014-06-10 12:31:19 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Psychological and psychiatric terms to avoid. |
| 13 |
|
| 14 |
""" |
| 15 |
from proselint.tools import existence_check, memoize, preferred_forms_check |
| 16 |
|
| 17 |
|
| 18 |
@memoize |
| 19 |
def check_lie_detector_test(text): |
| 20 |
"""Suggest the preferred forms.""" |
| 21 |
err = "psychology.lie_detector" |
| 22 |
msg = "Polygraph machines measure arousal, not lying per se. Try {}." |
| 23 |
|
| 24 |
list = [ |
| 25 |
["polygraph test", ["lie detector test"]], |
| 26 |
["polygraph machine", ["lie detector machine"]], |
| 27 |
] |
| 28 |
|
| 29 |
return preferred_forms_check(text, list, err, msg) |
| 30 |
|
| 31 |
|
| 32 |
@memoize |
| 33 |
def check_p_equals_zero(text): |
| 34 |
"""Check for p = 0.000.""" |
| 35 |
err = "psychology.p_equals_zero" |
| 36 |
msg = "Unless p really equals zero, you should use more decimal places." |
| 37 |
|
| 38 |
list = [ |
| 39 |
"p = 0.00", |
| 40 |
"p = 0.000", |
| 41 |
"p = 0.0000", |
| 42 |
] |
| 43 |
|
| 44 |
return existence_check(text, list, err, msg, join=True) |
| 45 |
|
| 46 |
|
| 47 |
@memoize |
| 48 |
def check_mental_telepathy(text): |
| 49 |
"""Check for 'mental telepathy'.""" |
| 50 |
err = "psychology.mental_telepathy" |
| 51 |
msg = "This is redundant because all purported telepathy is mental." |
| 52 |
|
| 53 |
return existence_check(text, ["mental telepathy"], err, msg) |