Skip to content

Commit

Permalink
Merge pull request #77 from DewiBrynJones/welsh
Browse files Browse the repository at this point in the history
Welsh
  • Loading branch information
kdavis-mozilla authored Jan 30, 2019
2 parents 67ddee0 + 6547234 commit aa0e2b3
Showing 1 changed file with 9 additions and 1 deletion.
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

0 comments on commit aa0e2b3

Please sign in to comment.