Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
/ VowelMixer Public archive

Remaps the vowels in a text to make sentences composed of funny sounding words using Stanford CoreNLP as a lemmatizer (Pet project, 2016)

Notifications You must be signed in to change notification settings

Aenigma/VowelMixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VowelMixer

Remaps the vowels in a text to make sentences composed of funny sounding words

Take a word, such as jump and transform it into something like jimp in a way that's consistent between inflections of the word and occurences of the word. That is, it should have the same vowel maps between inflections and use the same vowel maps each time the word is seen.

Source Lemma Converted
jump jump jimp
jumping jump jimpang
jumped jump jimpod

Where a vowel map of the lemma, jump, is:

a -> e
e -> o
i -> a
o -> u
u -> i

Implementation

seed = hash(lemma(source))
map = createMap(seed)
for char in source.toCharArray:
  if char is vowel:
    destination += map[char]
  else
    destination += char

Future

Compound word support?

About

Remaps the vowels in a text to make sentences composed of funny sounding words using Stanford CoreNLP as a lemmatizer (Pet project, 2016)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages