Commit b314ff9b authored by Michal Čihař's avatar Michal Čihař

Ignore all two letter words in same check

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 283b519d
......@@ -41,7 +41,6 @@ SAME_BLACKLIST = frozenset((
'administrator',
'administration',
'africa',
'ah',
'alarm',
'album',
'aliasing',
......@@ -71,7 +70,6 @@ SAME_BLACKLIST = frozenset((
'bar',
'baseball',
'battery',
'bb',
'begin',
'bios',
'bit',
......@@ -102,7 +100,6 @@ SAME_BLACKLIST = frozenset((
'click',
'clipboard',
'club',
'cm',
'code',
'collation',
'color',
......@@ -125,7 +122,6 @@ SAME_BLACKLIST = frozenset((
'data',
'database',
'date',
'db',
'dbm',
'debian',
'debug',
......@@ -143,7 +139,6 @@ SAME_BLACKLIST = frozenset((
'direction',
'distribution',
'distro',
'dm',
'doc',
'docs',
'doctor',
......@@ -169,7 +164,6 @@ SAME_BLACKLIST = frozenset((
'enum',
'error',
'escape',
'eu',
'exchange',
'excel',
'expert',
......@@ -197,7 +191,6 @@ SAME_BLACKLIST = frozenset((
'format',
'freemind',
'freeplane',
'ft',
'full',
'fulltext',
'function',
......@@ -246,7 +239,6 @@ SAME_BLACKLIST = frozenset((
'icmp',
'icon',
'icons',
'id',
'ids',
'idea',
'ignore',
......@@ -257,7 +249,6 @@ SAME_BLACKLIST = frozenset((
'imei',
'imsi',
'import',
'in',
'inconsistent',
'index',
'india',
......@@ -291,12 +282,9 @@ SAME_BLACKLIST = frozenset((
'joins',
'jpeg',
'karaoke',
'kb',
'kernel',
'kib',
'km',
'knoppix',
'ko',
'kong',
'label',
'land',
......@@ -324,7 +312,6 @@ SAME_BLACKLIST = frozenset((
'longitude',
'lord',
'ltr',
'ma',
'mah',
'manager',
'mandrake',
......@@ -348,7 +335,6 @@ SAME_BLACKLIST = frozenset((
'messages',
'meta',
'metal',
'mi',
'mib',
'micropayment',
'micropayments',
......@@ -360,7 +346,6 @@ SAME_BLACKLIST = frozenset((
'minus',
'minute',
'minutes',
'mm',
'model',
'module',
'modules',
......@@ -370,10 +355,8 @@ SAME_BLACKLIST = frozenset((
'motif',
'mouse',
'mph',
'ms',
'multiplayer',
'musicbottle',
'mv',
'name',
'namecoin',
'namecoins',
......@@ -383,13 +366,11 @@ SAME_BLACKLIST = frozenset((
'network',
'neutral',
'nimh',
'no',
'node',
'none',
'normal',
'note',
'notify',
'nt',
'null',
'num',
'numeric',
......@@ -397,7 +378,6 @@ SAME_BLACKLIST = frozenset((
'office',
'offline',
'ogg',
'ok',
'online',
'opac',
'open',
......@@ -411,7 +391,6 @@ SAME_BLACKLIST = frozenset((
'option',
'options',
'orientation',
'os',
'osm',
'osmand',
'output',
......@@ -448,7 +427,6 @@ SAME_BLACKLIST = frozenset((
'plural',
'plus',
'png',
'po',
'point',
'polygon',
'polymer',
......@@ -472,10 +450,8 @@ SAME_BLACKLIST = frozenset((
'protocol',
'provider',
'proxy',
'pt',
'pull',
'push',
'px',
'python',
'python-gammu',
'query',
......@@ -605,14 +581,12 @@ SAME_BLACKLIST = frozenset((
'tray',
'trigger',
'triggers',
'ts',
'tutorial',
'tour',
'type',
'twiki',
'twitter',
'ubuntu',
'ui',
'ukolovnik',
'unicode',
'unique',
......@@ -652,7 +626,6 @@ SAME_BLACKLIST = frozenset((
'xkeys',
'xml',
'yard',
'yd',
'zen',
'zero',
'zip',
......@@ -686,13 +659,6 @@ SAME_BLACKLIST = frozenset((
'dec',
# Week names shotrcuts
'mo',
'tu',
'we',
'th',
'fr',
'sa',
'su',
'mon',
'tue',
'wed',
......@@ -702,10 +668,7 @@ SAME_BLACKLIST = frozenset((
'sun',
# Roman numbers
'ii',
'iii',
'iv',
'vi',
# Architectures
'alpha',
......@@ -823,7 +786,6 @@ SAME_BLACKLIST = frozenset((
'nahuatl',
'neapolitan',
'nepali',
'n\'ko',
'norwegian',
'nynorsk',
'occitan',
......@@ -987,7 +949,7 @@ def test_word(word):
'''
Test whether word should be ignored.
'''
return len(word) <= 1 or word in SAME_BLACKLIST
return len(word) <= 2 or word in SAME_BLACKLIST
class SameCheck(TargetCheck):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment