def test_start_single_consonant1(self): """ Words beginning with a single consonant typically replace that consonant with shm- (table shmable). """ intext = "table" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmable")
def test_start_vowel1(self): """ Vowel-initial words prepend the shm- directly to the beginning of the reduplicant (apple shmapple). """ intext = "apple" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmapple")
def test_two_words1(self): """ When speaking two words, usually only the second word is shm-reduplicated (Led Zeppelin Led Shmeppelin). """ intext = "Led Zeppelin" outtext = schpy.schpy(intext) self.assertEqual(outtext, "Led Schmeppelin")
def test_schm_words1(self): """ Shm-reduplication is generally avoided or altered with words that already begin with shm-; for instance, schmuck does not yield the expected *schmuck schmuck, but rather total avoidance or mutation of the shm- (giving forms like schmuck shluck, schmuck fluck, and so on). """ intext = "schmuck" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schnuck")
def test_start_consonant_cluster1(self): """ Words beginning with a consonant cluster are more variable: some speakers replace only the first consonant if possible (breakfast shmreakfast), others replace the entire cluster (breakfast shmeakfast). """ intext = "breakfast" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmeakfast")
def test_school(self): intext = "School" outtext = schpy.schpy(intext) self.assertEqual(outtext, "Schmool")
def test_scotland(self): intext = "Scotland" outtext = schpy.schpy(intext) self.assertEqual(outtext, "Schmotland")
def test_this(self): intext = "this" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmis")
def test_ash(self): intext = "ash" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmash")
def test_witches(self): intext = "witches" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmitches")
def test_ashmont(self): intext = "Ashmont" outtext = schpy.schpy(intext) self.assertEqual(outtext, "Schmashmont")
def test_obscene(self): intext = "obscene" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmobscene")
def test_walkman(self): intext = "walkman" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmalkman")
def test_schnozz(self): intext = "schnozz" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmozz")
def test_terrific(self): intext = "terrific" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmerrific")
def test_circus(self): intext = "circus" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmircus")
def test_massage(self): intext = "massage" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmassage")
def test_gibberish(self): intext = "gibberish" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmibberish")
def test_lyrics(self): intext = "lyrics" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmyrics")
def test_schmidt(self): intext = "Schmidt" outtext = schpy.schpy(intext) self.assertEqual(outtext, "Schnidt")
def test_quotes(self): intext = "quotes" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmotes")
def test_three_words1(self): """ """ intext = "red and yellow" outtext = schpy.schpy(intext) self.assertEqual(outtext, "red and schmellow")
def test_start_single_consonant2(self): intext = "HOTEL" outtext = schpy.schpy(intext) self.assertEqual(outtext, "SCHMOTEL")
def test_nothing(self): intext = "" outtext = schpy.schpy(intext) self.assertEqual(outtext, "")
def test_start_consonant_cluster2(self): intext = "group" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmoup")
def test_sky(self): intext = "sky" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmy")
def test_schmooze(self): intext = "schmooze" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schnooze")
def test_ishmael(self): intext = "Ishmael" outtext = schpy.schpy(intext) self.assertEqual(outtext, "Schmishmael")
def test_metalinguistic(self): intext = "metalinguistic" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmetalinguistic")
def test_wig(self): intext = "wig" outtext = schpy.schpy(intext) self.assertEqual(outtext, "schmig")