mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
remove LAUGHTER_WORDS, which is now unused
This was a fun Twitter test, but we don't do that anymore
This commit is contained in:
parent
65811d587e
commit
b2663272a7
@ -19,30 +19,6 @@ def test_freq_examples():
|
|||||||
assert_greater(word_frequency('infrequency', 'en'), 0.)
|
assert_greater(word_frequency('infrequency', 'en'), 0.)
|
||||||
|
|
||||||
|
|
||||||
# To test the reasonableness of the Twitter list, we want to look up a
|
|
||||||
# common word representing laughter in each language. The default for
|
|
||||||
# languages not listed here is 'haha'.
|
|
||||||
LAUGHTER_WORDS = {
|
|
||||||
'en': 'lol',
|
|
||||||
'hi': 'lol',
|
|
||||||
'cs': 'lol',
|
|
||||||
'ru': 'лол',
|
|
||||||
'zh': '笑',
|
|
||||||
'ja': '笑',
|
|
||||||
'ar': 'ﻪﻬﻬﻬﻫ',
|
|
||||||
'fa': 'خخخخ',
|
|
||||||
'ca': 'jaja',
|
|
||||||
'es': 'jaja',
|
|
||||||
'fr': 'ptdr',
|
|
||||||
'pt': 'kkkk',
|
|
||||||
'he': 'חחח',
|
|
||||||
'bg': 'ахаха',
|
|
||||||
'uk': 'хаха',
|
|
||||||
'bn': 'হা হা',
|
|
||||||
'mk': 'хаха'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def test_languages():
|
def test_languages():
|
||||||
# Make sure we get all the languages when looking for the default
|
# Make sure we get all the languages when looking for the default
|
||||||
# 'best' wordlist
|
# 'best' wordlist
|
||||||
|
Loading…
Reference in New Issue
Block a user