>>> from fauna import scientific >>> textini = """\ ... A large herd of goats jumps across the massif with an important \ ... population of five thousand units and that constitutes \ ... the most emblematic species of Els Ports. There are also wild_boars \ ... scattered throughout the mountain range. Sadly, wolves were extinguished \ ... for over 100 years but there are foxes which are smaller and not as bad. \ ... We can see eagles flying in many places and vultures can also be seen. \ ... Among the rodents there are squirrels \ ... and there are also reptiles like adders among others.""" >>> d_animals = {'goats': 'capra hispanica', 'wild_boars': 'sus scrofa', ... 'wolves': 'canis lupus', 'foxes': 'vulpes vulpes', ... 'eagles': 'aguila chrysaetos', 'vultures': 'gyps fulvus', ... 'squirrels': 'sciurus vulgaris', 'adders': 'vipera latasti'} >>> r = scientific (textini, d_animals) >>> if r != """\ ... A large herd of goats (capra hispanica) jumps across the massif with an \ ... important population of five thousand units and that constitutes the most \ ... emblematic species of Els Ports. There are also wild_boars (sus scrofa) \ ... scattered throughout the mountain range. Sadly, wolves (canis lupus) \ ... were extinguished for over 100 years but there are foxes (vulpes vulpes) \ ... which are smaller and not as bad. \ ... We can see eagles (aguila chrysaetos) flying in many places \ ... and vultures (gyps fulvus) can also be seen. \ ... Among the rodents there are squirrels (sciurus vulgaris) \ ... and there are also reptiles like adders (vipera latasti) among others.""": ... print(r)