importpywikibotdefcheck_wiktionary_existence(title):site=pywikibot.Site("de","wiktionary")page=pywikibot.Page(site,title)returnpage.exists()defsave_to_file(word,exists):withopen("wiktionary_output.txt","a",encoding="utf-8")asfile:file.write(f"{word}: {'heye'ifexistselse'tune'}\n")# Lîsteya peyvan ji dosyeyê bixwîneword_list_file="word_list.txt"# navê dosyeyêwithopen(word_list_file,"r",encoding="utf-8")asfile:words_from_file=[line.strip()forlineinfile.readlines()]forwordinwords_from_file:exists=check_wiktionary_existence(word)save_to_file(word,exists)print("Kontrolkirin bi dawî bû. Encam di dosyeya 'wiktionary_output.txt' de hatin tomarkirin.")