Skip to content

Translate common english into Doge. Algorithm put to use in Objective C.

Notifications You must be signed in to change notification settings

ashbhat/dogeTranslate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

dogeTranslate

Translate common english into Doge. The algorithm is implemented as an example case in Objective C. Ask questions via twitter to @theashbhat

Translated - very Translate wow common so english very into much Doge. such Algorithm very implemented as very example wow case in wow Objective C. Ask wow questions via such twitter to wow @theashbhat

Rough Overview Algorithm

  1. Create 2 objects that contain doge words and bad words

    doge words consists of much, such, wow, so, many

    bad words consists of any of the following it, he, they, we, us, me, him, her, has, have, are, is, was, were, be, become, became

  2. Given a sentance in proper english, loop through the sentance for every word

     a. if the word matches the bad words list, remove the word (if for looping through an array, remember to remove 1 to the count)
     
     b. if the word has a "ly" or "ing" ending, remove the ending
     
     c. if a&b don't apply to the word, place a random word from the "doge words" list infront of the word (if for looping through an array, remember to add 1 to the count)
    

About

Translate common english into Doge. Algorithm put to use in Objective C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published