Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 601 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 601 Bytes

pyplgrapi

pyplgrapi provides some APIs as functions.

Conversion API

to_polytonic method converts an ASCII string into a string in polytonic Greek.

from pyplgrapi import to_polytonic

converted = to_polytonic(">'anthr^opos")
print(converted) # ἄνθρωπος

Collection API

to_words_list method splits a text in polytonic Greek into words:

from pyplgrapi import to_words_list

converted = to_polytonic("<o >'anthr^op'os tis")
split = to_words_list(converted)
print(split) # ['ὁ', 'ἄνθρωπός', 'τις']

Conversion Rules

(Under construction)