This commit is contained in:
s444501 2022-04-22 18:58:03 +02:00
parent 609ff2f6f1
commit dc23a5d26a
4 changed files with 525 additions and 522 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

5
run.py
View File

@ -1,9 +1,10 @@
m = ['żona', 'żony', 'żonie', 'żoną', 'zona', 'zony', 'zonie', 'mecz', 'komputer', 'serwer',
'ziomek', 'ziom', 'ziomków', 'ziomkow', 'kumpel', 'kolega', 'kolegą', 'kolegi'
'ziomek', 'ziom', 'ziomków', 'ziomkow', 'kumpel', 'kolega', 'kolegą', 'kolegi',
'lagi', 'gram', 'gra', 'gry', 'diablo', 'wowa', 'tibia', 'tibie', 'samochód', 'samochod', 'auto', 'felga', 'felgi',
'bmw', 'audi', 'passat', 'informatyka', 'informatykę', 'polibuda', 'polibudzie', 'politechnika', 'politechnice',
'piwo', 'laska', 'laseczka', 'laseczki', 'dziewczynie', 'siema', 'elo', 'yo', 'spadam', 'windows',
'linux', 'sterowniki', 'silka', 'siłka', 'wyciskam', 'klate', 'paliwo', 'paliwa', 'lv', 'eq',
'robota', 'cycki', 'sztanga', 'sztange', 'rychu', 'peja', 'czolg', 'czołg', 'korwin'
]
@ -16,6 +17,8 @@ def calculate(p_in, p_out):
results = []
with open(p_in, encoding='utf-8') as file:
for line in file.readlines():
line.replace('.', ' ')
line.replace(',', ' ')
words = line.split()
m_score = len([w for w in words if w in m])
f_score = len([w for w in words if w in f])

File diff suppressed because it is too large Load Diff