Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welsh #77

Merged
merged 4 commits into from
Jan 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/corporacreator/preprocessors/cy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ def cy(client_id, sentence):
# TODO: Clean up cy data

# make sure all spaces are normal, single spaces
sentence = sentence.replace("’","'")
sentence = sentence.replace("’", "'")
sentence = sentence.replace("wwna", "wna")
sentence = sentence.replace(" siwr ", " siŵr ")
sentence = sentence.replace("\\tungellog"," ungellog")


# TODO: geiriau Saesneg / English inspired/pronunced words:
# wallace, celsius, ddiesel, wicipedia, william, chiswell, f., h.

# this if loop will skip the following else loop in the case that
# the sentence is purely Welsh characters as per https://github.com/
# unicode-cldr/cldr-misc-full/blob/master/main/cy/characters.json
Expand Down