示例#1
0
 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")
示例#2
0
 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")
示例#3
0
 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")
示例#4
0
 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")
示例#5
0
 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")
示例#6
0
 def test_school(self):
     intext = "School"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "Schmool")
示例#7
0
 def test_scotland(self):
     intext = "Scotland"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "Schmotland")
示例#8
0
 def test_this(self):
     intext = "this"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmis")
示例#9
0
 def test_ash(self):
     intext = "ash"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmash")
示例#10
0
 def test_witches(self):
     intext = "witches"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmitches")
示例#11
0
 def test_ashmont(self):
     intext = "Ashmont"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "Schmashmont")
示例#12
0
 def test_obscene(self):
     intext = "obscene"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmobscene")
示例#13
0
 def test_walkman(self):
     intext = "walkman"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmalkman")
示例#14
0
 def test_schnozz(self):
     intext = "schnozz"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmozz")
示例#15
0
 def test_terrific(self):
     intext = "terrific"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmerrific")
示例#16
0
 def test_circus(self):
     intext = "circus"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmircus")
示例#17
0
 def test_massage(self):
     intext = "massage"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmassage")
示例#18
0
 def test_gibberish(self):
     intext = "gibberish"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmibberish")
示例#19
0
 def test_lyrics(self):
     intext = "lyrics"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmyrics")
示例#20
0
 def test_schmidt(self):
     intext = "Schmidt"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "Schnidt")
示例#21
0
 def test_quotes(self):
     intext = "quotes"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmotes")
示例#22
0
 def test_three_words1(self):
     """
     """
     intext = "red and yellow"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "red and schmellow")
示例#23
0
 def test_start_single_consonant2(self):
     intext = "HOTEL"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "SCHMOTEL")
示例#24
0
 def test_nothing(self):
     intext = ""
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "")
示例#25
0
 def test_start_consonant_cluster2(self):
     intext = "group"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmoup")
示例#26
0
 def test_sky(self):
     intext = "sky"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmy")
示例#27
0
 def test_schmooze(self):
     intext = "schmooze"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schnooze")
示例#28
0
 def test_ishmael(self):
     intext = "Ishmael"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "Schmishmael")
示例#29
0
 def test_metalinguistic(self):
     intext = "metalinguistic"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmetalinguistic")
示例#30
0
 def test_wig(self):
     intext = "wig"
     outtext = schpy.schpy(intext)
     self.assertEqual(outtext, "schmig")