Class: YumemoireEnvironmental::YumemoireDialogue::DialogueScript

Inherits:
Object
  • Object
show all
Defined in:
lib/YumemoireFramework.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.five_characterObject



286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/YumemoireFramework.rb', line 286

def self.five_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  component_one = dipthongs.sample.strip.to_s
  component_two = dipthongs.sample.strip.to_s
  component_tre = dipthongs.sample.strip.to_s
  component_fro = dipthongs.sample.strip.to_s
  component_fiv = dipthongs.sample.strip.to_s

  generated_word = component_one + component_two + component_tre + component_fro + component_fiv

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
    
  puts "Septuple"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

.one_characterObject



252
253
254
255
256
257
258
259
260
261
262
263
264
265
# File 'lib/YumemoireFramework.rb', line 252

def self.one_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  generated_word = dipthongs.sample.strip.to_s

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
    
  puts "Single"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

.procedural_euphemismsObject



330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'lib/YumemoireFramework.rb', line 330

def self.procedural_euphemisms
#          Te      Ta     Tos
# Te    Te,Te   Te,Ta  Te,Tos
# Ta    Ta,Te   Ta,Ta  Ta,Tos
# Tos  Tos,Te  Tos,Ta Tos,Tos

7.times do

  hybrid_genders = [
    [["Te",  "Te"], ["Te",  "Ta"], ["Te",  "Tos"]],
    [["Ta" , "Te"], ["Ta",  "Ta"], ["Ta",  "Tos"]],
    [["Tos", "Te"], ["Tos", "Ta"], ["Tos", "Tos"]],
  ]

  gender_row_options = [0, 1, 2]
  gender_col_options = [0, 1, 2]
  gender_arr_options = [0, 1]

  gender_cur_row = gender_row_options.sample
  gender_cur_col = gender_col_options.sample
  gender_cur_arr = gender_arr_options.sample

  h_gender = hybrid_genders[gender_cur_row][gender_cur_col][gender_cur_arr]

  #               ie  shado gareji ribingurumu  roka   daidakoro shinku aisubokkusu uindo  basurumu shinshitsu
  # ie            i,i  i,s1  i,g    i,r1         i,r2   i,d       i,s2    i,a         i,u    i.b      i,s3     # House
  # shado        s1,i s1,s1 s1,g   s1,r1        s1,r2  s1,d      s1,s2   s1,a        s1,u   s1.b     s1,s3     # Slope
  # gareji        g,i  g,s1  g,g    g,r1         g,r2   g,d       g,s2    g,a         g,u    g.b      g,s3     # Garage
  # ribingurumu  r1,i r1,s1 r1,g   r1,r1        r1,r2  r1,d      r1,s2   r1,a        r1,u   r1.b     r1,s3     # Living Room
  # roka          g,i  g,s1  g,g    g,r1         g,r2   g,d       g,s     g,a         g,u    g.b      g,s3     # Fridge
  # daidakoro     d,i  d,s1  d,g    d,r1         d,r2   d,d       d,s     d,a         d,u    d.b      d,s3     # The first time
  # shinku       s2,i s2,s1 s2,g   s2,r1        s2,r2  s2,d      s2,s    s2,a        s2,u   s2.b     s2,s3     # Sink
  # aisubokkusu   a,i  a,s1  a,g    a,r1         a,r2   a,d       a,s     a,a         a,u    a.b      a,s2     # Ice Box
  # uindo         u,i  u,s1  u,g    u,r1         u,r2   u,d       u,s     u,a         u,u    u.b      u,s2     # Window
  # basurumu      b,i  b,s1  b,g    b,r1         b,r2   b,d       b,s     b,a         b,u    b.b      b,s2     # Bathroom
  # shinshitsu   s3,i s3,s1 s3,g   s3,r1        s3,r2  s3,d      s3,s    s3,a         s3,u  s3.b     s3,s2     # Bedroom

  locations = [
    [["Ie",          "Ie"], ["Ie",          "Shado"], ["Ie",          "Gareji"], ["Ie",          "Ribingurumu"], ["Ie",          "Roka"], ["Ie",          "Daidakoro"], ["Ie",          "Shinku"], ["Ie",          "Aisubokkusu"], ["Ie",          "Uindo"], ["Ie",          "Basurumu"], ["Ie",          "Shinshitsu"]],
    [["Shadi" ,      "Ie"], ["Shado",       "Shado"], ["Shado",       "Gareji"], ["Shado",       "Ribingurumu"], ["Shado" ,      "Roka"], ["Shado",       "Daidakoro"], ["Shado",       "Shinku"], ["Shado",       "Aisubokkusu"], ["Shado",       "Uindo"], ["Shado",       "Basurumu"], ["Shado",       "Shinshitsu"]],
    [["Gareji",      "Ie"], ["Gareji",      "Shado"], ["Gareji",      "Gareji"], ["Gareji",      "Ribingurumu"], ["Gareji",      "Roka"], ["Gareji",      "Daidakoro"], ["Gareji",      "Shinku"], ["Gareji",      "Aisubokkusu"], ["Garehi",      "Uindo"], ["Gareji",      "Basurumu"], ["Shadow",      "Shinshitsu"]],
    [["Ribingurumu", "Ie"], ["Ribingurumu", "Shado"], ["Ribingurumu", "Gareji"], ["Ribingurumu", "Ribingurumu"], ["Ribingurumu", "Roka"], ["Ribingurumu", "Daidakoro"], ["Ribingurumu", "Shinku"], ["Ribingurumu", "Aisubokkusu"], ["Ribingurumu", "Uindo"], ["Ribingurumu", "Basurumu"], ["Ribingurumu", "Shinshitsu"]],
    [["Roka",        "Ie"], ["Roka",        "Shado"], ["Roka",        "Gareji"], ["Roka",        "Ribingurumu"], ["Roka",        "Roka"], ["Roka",        "Daidakoro"], ["Roka",        "Shinku"], ["Roka",        "Aisubokkusu"], ["Roka",        "Uindo"], ["Roka",        "Basurumu"], ["Roka",        "Shinshitsu"]],
    [["Daidakoro",   "Ie"], ["Daidakoro",   "Shado"], ["Daidakoro",   "Gareji"], ["Daidakoro",   "Ribingurumu"], ["Daidakoro",   "Roka"], ["Daidakoro",   "Daidakoro"], ["Daidakoro",   "Shinku"], ["Daidakoro",   "Aisubokkusu"], ["Daidakoro",   "Uindo"], ["Daidakoro",   "Basurumu"], ["Daidakoro",   "Shinshitsu"]],
    [["Shinku",      "Ie"], ["Shinku",      "Shado"], ["Shinku",      "Gareji"], ["Shinku",      "Ribingurumu"], ["Shinku",      "Roka"], ["Shinku",      "Daidakoro"], ["Shinku",      "Shinku"], ["Shinku",      "Aisubokkusu"], ["Shinku",      "Uindo"], ["Shinku",      "Basurumu"], ["Shinku",      "Shinshitsu"]],
    [["aisubokkusu", "Ie"], ["Aisubokkusu", "Shado"], ["Aisubokkusu", "Gareji"], ["Aisubokkusu", "Ribingurumu"], ["Aisubokkusu", "Roka"], ["Aisubokkusu", "Daidakoro"], ["Aisubokkusu", "Shinku"], ["Aisubokkusu", "Aisubokkusu"], ["Aisubokkusu", "Uindo"], ["Aisubokkusu", "Basurumu"], ["Aisubokkusu", "Shinshitsu"]],
    [["Uindo",       "Ie"], ["Uindo",       "Shado"], ["Uindo",       "Gareji"], ["Uindo"      , "Ribingurumu"], ["Uindo",       "Roka"], ["Uindo",       "Daidakoro"], ["Uindo",       "Shinku"], ["Uindo",       "Aisubokkusu"], ["Uindo",       "Uindo"], ["Uindo",       "Basurumu"], ["Uindo",       "Shinshitsu"]],
    [["Basurumu",    "Ie"], ["Basurumu",    "Shado"], ["Basurumu",    "Gareji"], ["Basurumu",    "Ribingurumu"], ["Basurumu",    "Roka"], ["Basurumu",    "Daidakoro"], ["Basurumu",    "Shinku"], ["Basurumu",    "Aisubokkusu"], ["Basurumu",    "Uindo"], ["Basurumu",    "Basurumu"], ["Basurumu",    "Shinshitsu"]],
    [["Shinshitsu",  "Ie"], ["Shinsitsu",   "Shado"], ["Shinsitsu",   "Gareji"], ["Shinshitsu",  "Ribingurumu"], ["Shinshitsu",  "Roka"], ["Shinshitsu",  "Daidakoro"], ["Shinshitsu",  "Shinku"], ["Shinshitsu",  "Aisubokkusu"], ["Shinshitsu",  "Uindo"], ["Shinshitsu",  "Basurumu"], ["Shinshitsu",  "Shinshitsu"]],
  ]

  location_row_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  location_col_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  location_arr_options = [0, 1]

  l_cur_row = location_row_options.sample
  l_cur_col = location_col_options.sample
  l_cur_arr = location_arr_options.sample

  cur_location = locations[l_cur_row][l_cur_col][l_cur_arr]

  #            guache entre sortie porte canape pratiquer manger lave  merde  dorm  mur
  # guache      g,g    g,e   g,s    g,p   g,c    g,p       g,m1   g,l   g,m2   g,d   g,m3 # Gouache paint
  # entre       e,g    e,e   e,s    e,p   e,c    e,p       e,m1   e,l   e,m2   e,d   e,m3 # Between
  # sortie      s,g    s,e   s,s    s,p   s,c    s,p       s,m1   s,l   s,m2   s,d   s,m3 # Exit
  # porte       p,g    p,e   p,s    p,p   p,c    p,p       p,m1   p,l   p,m2   p,d   p,m3 # Door
  # canape      c,g    c,e   c,s    c,p   c,c    c,p       c,m1   c,l   c,m2   c,d   c,m3 # Couch
  # pratiquer   p,g    p,e   p,s    p,p   p,c    p,p       p,m1   p,l   p,m2   p,d   p,m3 # Practice
  # manger     m1,g   m1,e  m1,s   m1,p  m1,c   m1,p      m1,m1  m1,l  m1,m2  m1,d  m1,m3 # To Eat
  # lave        l,g    l,e   l,s    l,p   l,c    l,p       l,m1   l,l   l,m2   l,d   l,m3 # Washed / Wash
  # merde      m2,g   m2,e  m2,s   m2,p  m2,c   m2,p      m2,m1  m2,l  m2,m2  m2,d  m2,m3 # Shit / Poo ( informal )
  # dorm        d,g    d,e   d,s    d,p   d,c    d,p       d,m1   d,l   d,m2   d,d   d,m3 # Sleep
  # mur        m3,g   m3,e  m3,s   m3,p  m3,c   m3,p      m3,m1  m3,l  m3,m   m3,d  m3,m2 # Wall

  #begin

  verbs = [
    [["gouache",   "gouache"], ["gouache",   "entre"], ["gouache",   "sortie"], ["gouache",   "porte"], ["gouache",   "canape"], ["gouache",   "pratiquer"], ["gouache",   "manger"], ["gouache",   "laver"], ["gouache",   "merde"], ["gouache",   "dorm"], ["gouache",   "mur"]],
    [["entre",     "gouache"], ["entre",     "entre"], ["entre",     "sortie"], ["entre",     "porte"], ["entre",     "canape"], ["entre",     "pratiquer"], ["entre",     "manger"], ["entre",     "laver"], ["entre",     "merde"], ["entre",     "dorm"], ["entre",     "mur"]],
    [["sortie",    "gouache"], ["sortie",    "entre"], ["sortie",    "sortie"], ["sortie",    "porte"], ["sortie",    "canape"], ["sortie",    "pratiquer"], ["sortie",    "manger"], ["sortie",    "laver"], ["sortie",    "merde"], ["sortie",    "dorm"], ["sortie",    "mur"]],
    [["porte",     "gouache"], ["porte",     "entre"], ["porte",     "sortie"], ["porte",     "porte"], ["porte",     "canape"], ["porte",     "pratiquer"], ["porte",     "manger"], ["porte",     "laver"], ["porte",     "merde"], ["porte",     "dorm"], ["prte",      "mur"]],
    [["canape",    "gouache"], ["canape",    "entre"], ["canape",    "sortie"], ["canape",    "porte"], ["canape",    "canape"], ["canape",    "pratiquer"], ["canape",    "manger"], ["canape",    "laver"], ["canape",    "merde"], ["canape",    "dorm"], ["canape",    "mur"]],
    [["pratiquer", "gouache"], ["pratiquer", "entre"], ["pratiquer", "sortie"], ["pratiquer", "porte"], ["pratiquer", "canape"], ["pratiquer", "pratiquer"], ["pratiquer", "manger"], ["pratiquer", "laver"], ["pratiquer", "merde"], ["pratiquer", "dorm"], ["pratiquer", "mur"]],
    [["manger",    "gouache"], ["manger",    "entre"], ["manger",    "sortie"], ["manger",    "porte"], ["manger",    "canape"], ["manger",    "pratiquer"], ["manger",    "manger"], ["manger",    "laver"], ["manger",    "merde"], ["manger",    "dorm"], ["manger",    "mur"]],
    [["laver",     "gouache"], ["laver",     "entre"], ["laver",     "sortie"], ["laver",     "porte"], ["laver",     "canape"], ["laver",     "pratiquer"], ["laver",     "manger"], ["laver",     "laver"], ["laver",     "merde"], ["laver",     "dorm"], ["laver",     "mur"]],
    [["merde",     "gouache"], ["merde",     "entre"], ["merde" ,    "sortie"], ["merde",     "porte"], ["merde",     "canape"], ["merde",     "pratiquer"], ["merde",     "manger"], ["merde",     "laver"], ["merde",     "merde"], ["merde",     "dorm"], ["merde",     "mur"]],
    [["dorm",      "gouache"], ["dorm",      "entre"], ["dorm",      "sortie"], ["dorm",      "porte"], ["dorm",      "canape"], ["dorm",      "pratiquer"], ["dorm",      "manger"], ["dorm",      "laver"], ["dorm",      "merde"], ["dorm",      "dorm"], ["dorm",      "mur"]],
    [["mur",       "gouache"], ["mur",       "entre"], ["mur",       "sortie"], ["mur",       "porte"], ["mur",       "canape"], ["mur",       "pratiquer"], ["mur",       "manger"], ["mur",       "laver"], ["mur",       "merde"], ["mur",       "dorm"], ["mur",       "mur"]],
  ]

  verb_row_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  verb_col_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  verb_arr_options = [0, 1]

  v_cur_row = verb_row_options.sample
  v_cur_col = verb_row_options.sample
  v_cur_arr = verb_arr_options.sample

  cur_verb = verbs[v_cur_row][v_cur_col][v_cur_arr]

  #rescue
    #puts "No such verb on #{v_cur_row} #{v_cur_col} #{v_cur_arr}"
  #end

  ## Create word
  current_word = "#{h_gender} #{cur_location}#{cur_verb}"
  #current_word = "#{cur_verb}"

    #training_data = " => portmanteau.train(:formal, '#{current_word}', 'word')\n"

    File.open("_input/portmanteau.txt", "a") { |f|
      f.puts current_word
    }
    #puts  training_data
  end
end

.word_lengthsObject

Dialogue Script #



251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
# File 'lib/YumemoireFramework.rb', line 251

def self.word_lengths
def self.one_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  generated_word = dipthongs.sample.strip.to_s

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
    
  puts "Single"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

def three_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  component_one = dipthongs.sample.strip.to_s
  component_two = dipthongs.sample.strip.to_s
  component_tre = dipthongs.sample.strip.to_s

  generated_word = component_one + component_two + component_tre

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
    
  puts "Triple"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

def self.five_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  component_one = dipthongs.sample.strip.to_s
  component_two = dipthongs.sample.strip.to_s
  component_tre = dipthongs.sample.strip.to_s
  component_fro = dipthongs.sample.strip.to_s
  component_fiv = dipthongs.sample.strip.to_s

  generated_word = component_one + component_two + component_tre + component_fro + component_fiv

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
    
  puts "Septuple"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

def seven_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  component_one = dipthongs.sample.strip.to_s
  component_two = dipthongs.sample.strip.to_s
  component_tre = dipthongs.sample.strip.to_s
  component_fro = dipthongs.sample.strip.to_s
  component_fiv = dipthongs.sample.strip.to_s
  component_six = dipthongs.sample.strip.to_s
  component_sev = dipthongs.sample.strip.to_s

  generated_word = component_one + component_two + component_tre + component_fro + component_fiv + component_six + component_sev

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
  
  puts "Seven"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

def self.procedural_euphemisms
  #          Te      Ta     Tos
  # Te    Te,Te   Te,Ta  Te,Tos
  # Ta    Ta,Te   Ta,Ta  Ta,Tos
  # Tos  Tos,Te  Tos,Ta Tos,Tos

  7.times do

    hybrid_genders = [
      [["Te",  "Te"], ["Te",  "Ta"], ["Te",  "Tos"]],
      [["Ta" , "Te"], ["Ta",  "Ta"], ["Ta",  "Tos"]],
      [["Tos", "Te"], ["Tos", "Ta"], ["Tos", "Tos"]],
    ]

    gender_row_options = [0, 1, 2]
    gender_col_options = [0, 1, 2]
    gender_arr_options = [0, 1]

    gender_cur_row = gender_row_options.sample
    gender_cur_col = gender_col_options.sample
    gender_cur_arr = gender_arr_options.sample

    h_gender = hybrid_genders[gender_cur_row][gender_cur_col][gender_cur_arr]

    #               ie  shado gareji ribingurumu  roka   daidakoro shinku aisubokkusu uindo  basurumu shinshitsu
    # ie            i,i  i,s1  i,g    i,r1         i,r2   i,d       i,s2    i,a         i,u    i.b      i,s3     # House
    # shado        s1,i s1,s1 s1,g   s1,r1        s1,r2  s1,d      s1,s2   s1,a        s1,u   s1.b     s1,s3     # Slope
    # gareji        g,i  g,s1  g,g    g,r1         g,r2   g,d       g,s2    g,a         g,u    g.b      g,s3     # Garage
    # ribingurumu  r1,i r1,s1 r1,g   r1,r1        r1,r2  r1,d      r1,s2   r1,a        r1,u   r1.b     r1,s3     # Living Room
    # roka          g,i  g,s1  g,g    g,r1         g,r2   g,d       g,s     g,a         g,u    g.b      g,s3     # Fridge
    # daidakoro     d,i  d,s1  d,g    d,r1         d,r2   d,d       d,s     d,a         d,u    d.b      d,s3     # The first time
    # shinku       s2,i s2,s1 s2,g   s2,r1        s2,r2  s2,d      s2,s    s2,a        s2,u   s2.b     s2,s3     # Sink
    # aisubokkusu   a,i  a,s1  a,g    a,r1         a,r2   a,d       a,s     a,a         a,u    a.b      a,s2     # Ice Box
    # uindo         u,i  u,s1  u,g    u,r1         u,r2   u,d       u,s     u,a         u,u    u.b      u,s2     # Window
    # basurumu      b,i  b,s1  b,g    b,r1         b,r2   b,d       b,s     b,a         b,u    b.b      b,s2     # Bathroom
    # shinshitsu   s3,i s3,s1 s3,g   s3,r1        s3,r2  s3,d      s3,s    s3,a         s3,u  s3.b     s3,s2     # Bedroom

    locations = [
      [["Ie",          "Ie"], ["Ie",          "Shado"], ["Ie",          "Gareji"], ["Ie",          "Ribingurumu"], ["Ie",          "Roka"], ["Ie",          "Daidakoro"], ["Ie",          "Shinku"], ["Ie",          "Aisubokkusu"], ["Ie",          "Uindo"], ["Ie",          "Basurumu"], ["Ie",          "Shinshitsu"]],
      [["Shadi" ,      "Ie"], ["Shado",       "Shado"], ["Shado",       "Gareji"], ["Shado",       "Ribingurumu"], ["Shado" ,      "Roka"], ["Shado",       "Daidakoro"], ["Shado",       "Shinku"], ["Shado",       "Aisubokkusu"], ["Shado",       "Uindo"], ["Shado",       "Basurumu"], ["Shado",       "Shinshitsu"]],
      [["Gareji",      "Ie"], ["Gareji",      "Shado"], ["Gareji",      "Gareji"], ["Gareji",      "Ribingurumu"], ["Gareji",      "Roka"], ["Gareji",      "Daidakoro"], ["Gareji",      "Shinku"], ["Gareji",      "Aisubokkusu"], ["Garehi",      "Uindo"], ["Gareji",      "Basurumu"], ["Shadow",      "Shinshitsu"]],
      [["Ribingurumu", "Ie"], ["Ribingurumu", "Shado"], ["Ribingurumu", "Gareji"], ["Ribingurumu", "Ribingurumu"], ["Ribingurumu", "Roka"], ["Ribingurumu", "Daidakoro"], ["Ribingurumu", "Shinku"], ["Ribingurumu", "Aisubokkusu"], ["Ribingurumu", "Uindo"], ["Ribingurumu", "Basurumu"], ["Ribingurumu", "Shinshitsu"]],
      [["Roka",        "Ie"], ["Roka",        "Shado"], ["Roka",        "Gareji"], ["Roka",        "Ribingurumu"], ["Roka",        "Roka"], ["Roka",        "Daidakoro"], ["Roka",        "Shinku"], ["Roka",        "Aisubokkusu"], ["Roka",        "Uindo"], ["Roka",        "Basurumu"], ["Roka",        "Shinshitsu"]],
      [["Daidakoro",   "Ie"], ["Daidakoro",   "Shado"], ["Daidakoro",   "Gareji"], ["Daidakoro",   "Ribingurumu"], ["Daidakoro",   "Roka"], ["Daidakoro",   "Daidakoro"], ["Daidakoro",   "Shinku"], ["Daidakoro",   "Aisubokkusu"], ["Daidakoro",   "Uindo"], ["Daidakoro",   "Basurumu"], ["Daidakoro",   "Shinshitsu"]],
      [["Shinku",      "Ie"], ["Shinku",      "Shado"], ["Shinku",      "Gareji"], ["Shinku",      "Ribingurumu"], ["Shinku",      "Roka"], ["Shinku",      "Daidakoro"], ["Shinku",      "Shinku"], ["Shinku",      "Aisubokkusu"], ["Shinku",      "Uindo"], ["Shinku",      "Basurumu"], ["Shinku",      "Shinshitsu"]],
      [["aisubokkusu", "Ie"], ["Aisubokkusu", "Shado"], ["Aisubokkusu", "Gareji"], ["Aisubokkusu", "Ribingurumu"], ["Aisubokkusu", "Roka"], ["Aisubokkusu", "Daidakoro"], ["Aisubokkusu", "Shinku"], ["Aisubokkusu", "Aisubokkusu"], ["Aisubokkusu", "Uindo"], ["Aisubokkusu", "Basurumu"], ["Aisubokkusu", "Shinshitsu"]],
      [["Uindo",       "Ie"], ["Uindo",       "Shado"], ["Uindo",       "Gareji"], ["Uindo"      , "Ribingurumu"], ["Uindo",       "Roka"], ["Uindo",       "Daidakoro"], ["Uindo",       "Shinku"], ["Uindo",       "Aisubokkusu"], ["Uindo",       "Uindo"], ["Uindo",       "Basurumu"], ["Uindo",       "Shinshitsu"]],
      [["Basurumu",    "Ie"], ["Basurumu",    "Shado"], ["Basurumu",    "Gareji"], ["Basurumu",    "Ribingurumu"], ["Basurumu",    "Roka"], ["Basurumu",    "Daidakoro"], ["Basurumu",    "Shinku"], ["Basurumu",    "Aisubokkusu"], ["Basurumu",    "Uindo"], ["Basurumu",    "Basurumu"], ["Basurumu",    "Shinshitsu"]],
      [["Shinshitsu",  "Ie"], ["Shinsitsu",   "Shado"], ["Shinsitsu",   "Gareji"], ["Shinshitsu",  "Ribingurumu"], ["Shinshitsu",  "Roka"], ["Shinshitsu",  "Daidakoro"], ["Shinshitsu",  "Shinku"], ["Shinshitsu",  "Aisubokkusu"], ["Shinshitsu",  "Uindo"], ["Shinshitsu",  "Basurumu"], ["Shinshitsu",  "Shinshitsu"]],
    ]

    location_row_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    location_col_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    location_arr_options = [0, 1]

    l_cur_row = location_row_options.sample
    l_cur_col = location_col_options.sample
    l_cur_arr = location_arr_options.sample

    cur_location = locations[l_cur_row][l_cur_col][l_cur_arr]

    #            guache entre sortie porte canape pratiquer manger lave  merde  dorm  mur
    # guache      g,g    g,e   g,s    g,p   g,c    g,p       g,m1   g,l   g,m2   g,d   g,m3 # Gouache paint
    # entre       e,g    e,e   e,s    e,p   e,c    e,p       e,m1   e,l   e,m2   e,d   e,m3 # Between
    # sortie      s,g    s,e   s,s    s,p   s,c    s,p       s,m1   s,l   s,m2   s,d   s,m3 # Exit
    # porte       p,g    p,e   p,s    p,p   p,c    p,p       p,m1   p,l   p,m2   p,d   p,m3 # Door
    # canape      c,g    c,e   c,s    c,p   c,c    c,p       c,m1   c,l   c,m2   c,d   c,m3 # Couch
    # pratiquer   p,g    p,e   p,s    p,p   p,c    p,p       p,m1   p,l   p,m2   p,d   p,m3 # Practice
    # manger     m1,g   m1,e  m1,s   m1,p  m1,c   m1,p      m1,m1  m1,l  m1,m2  m1,d  m1,m3 # To Eat
    # lave        l,g    l,e   l,s    l,p   l,c    l,p       l,m1   l,l   l,m2   l,d   l,m3 # Washed / Wash
    # merde      m2,g   m2,e  m2,s   m2,p  m2,c   m2,p      m2,m1  m2,l  m2,m2  m2,d  m2,m3 # Shit / Poo ( informal )
    # dorm        d,g    d,e   d,s    d,p   d,c    d,p       d,m1   d,l   d,m2   d,d   d,m3 # Sleep
    # mur        m3,g   m3,e  m3,s   m3,p  m3,c   m3,p      m3,m1  m3,l  m3,m   m3,d  m3,m2 # Wall

    #begin

    verbs = [
      [["gouache",   "gouache"], ["gouache",   "entre"], ["gouache",   "sortie"], ["gouache",   "porte"], ["gouache",   "canape"], ["gouache",   "pratiquer"], ["gouache",   "manger"], ["gouache",   "laver"], ["gouache",   "merde"], ["gouache",   "dorm"], ["gouache",   "mur"]],
      [["entre",     "gouache"], ["entre",     "entre"], ["entre",     "sortie"], ["entre",     "porte"], ["entre",     "canape"], ["entre",     "pratiquer"], ["entre",     "manger"], ["entre",     "laver"], ["entre",     "merde"], ["entre",     "dorm"], ["entre",     "mur"]],
      [["sortie",    "gouache"], ["sortie",    "entre"], ["sortie",    "sortie"], ["sortie",    "porte"], ["sortie",    "canape"], ["sortie",    "pratiquer"], ["sortie",    "manger"], ["sortie",    "laver"], ["sortie",    "merde"], ["sortie",    "dorm"], ["sortie",    "mur"]],
      [["porte",     "gouache"], ["porte",     "entre"], ["porte",     "sortie"], ["porte",     "porte"], ["porte",     "canape"], ["porte",     "pratiquer"], ["porte",     "manger"], ["porte",     "laver"], ["porte",     "merde"], ["porte",     "dorm"], ["prte",      "mur"]],
      [["canape",    "gouache"], ["canape",    "entre"], ["canape",    "sortie"], ["canape",    "porte"], ["canape",    "canape"], ["canape",    "pratiquer"], ["canape",    "manger"], ["canape",    "laver"], ["canape",    "merde"], ["canape",    "dorm"], ["canape",    "mur"]],
      [["pratiquer", "gouache"], ["pratiquer", "entre"], ["pratiquer", "sortie"], ["pratiquer", "porte"], ["pratiquer", "canape"], ["pratiquer", "pratiquer"], ["pratiquer", "manger"], ["pratiquer", "laver"], ["pratiquer", "merde"], ["pratiquer", "dorm"], ["pratiquer", "mur"]],
      [["manger",    "gouache"], ["manger",    "entre"], ["manger",    "sortie"], ["manger",    "porte"], ["manger",    "canape"], ["manger",    "pratiquer"], ["manger",    "manger"], ["manger",    "laver"], ["manger",    "merde"], ["manger",    "dorm"], ["manger",    "mur"]],
      [["laver",     "gouache"], ["laver",     "entre"], ["laver",     "sortie"], ["laver",     "porte"], ["laver",     "canape"], ["laver",     "pratiquer"], ["laver",     "manger"], ["laver",     "laver"], ["laver",     "merde"], ["laver",     "dorm"], ["laver",     "mur"]],
      [["merde",     "gouache"], ["merde",     "entre"], ["merde" ,    "sortie"], ["merde",     "porte"], ["merde",     "canape"], ["merde",     "pratiquer"], ["merde",     "manger"], ["merde",     "laver"], ["merde",     "merde"], ["merde",     "dorm"], ["merde",     "mur"]],
      [["dorm",      "gouache"], ["dorm",      "entre"], ["dorm",      "sortie"], ["dorm",      "porte"], ["dorm",      "canape"], ["dorm",      "pratiquer"], ["dorm",      "manger"], ["dorm",      "laver"], ["dorm",      "merde"], ["dorm",      "dorm"], ["dorm",      "mur"]],
      [["mur",       "gouache"], ["mur",       "entre"], ["mur",       "sortie"], ["mur",       "porte"], ["mur",       "canape"], ["mur",       "pratiquer"], ["mur",       "manger"], ["mur",       "laver"], ["mur",       "merde"], ["mur",       "dorm"], ["mur",       "mur"]],
    ]

    verb_row_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    verb_col_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    verb_arr_options = [0, 1]

    v_cur_row = verb_row_options.sample
    v_cur_col = verb_row_options.sample
    v_cur_arr = verb_arr_options.sample

    cur_verb = verbs[v_cur_row][v_cur_col][v_cur_arr]

    #rescue
      #puts "No such verb on #{v_cur_row} #{v_cur_col} #{v_cur_arr}"
    #end

    ## Create word
    current_word = "#{h_gender} #{cur_location}#{cur_verb}"
    #current_word = "#{cur_verb}"

      #training_data = " => portmanteau.train(:formal, '#{current_word}', 'word')\n"

      File.open("_input/portmanteau.txt", "a") { |f|
        f.puts current_word
      }
      #puts  training_data
    end
  end
end

Instance Method Details

#seven_characterObject



307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/YumemoireFramework.rb', line 307

def seven_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  component_one = dipthongs.sample.strip.to_s
  component_two = dipthongs.sample.strip.to_s
  component_tre = dipthongs.sample.strip.to_s
  component_fro = dipthongs.sample.strip.to_s
  component_fiv = dipthongs.sample.strip.to_s
  component_six = dipthongs.sample.strip.to_s
  component_sev = dipthongs.sample.strip.to_s

  generated_word = component_one + component_two + component_tre + component_fro + component_fiv + component_six + component_sev

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
  
  puts "Seven"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end

#three_characterObject



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
# File 'lib/YumemoireFramework.rb', line 267

def three_character
  dipthongs = File.readlines("lib/data/dipthongs.txt")

  component_one = dipthongs.sample.strip.to_s
  component_two = dipthongs.sample.strip.to_s
  component_tre = dipthongs.sample.strip.to_s

  generated_word = component_one + component_two + component_tre

  masculine      = generated_word.chop +  "u"
  feminine       = generated_word.chop +  "a"
  plural         = generated_word.chop + "os"
    
  puts "Triple"
  puts "#{masculine} #{feminine} #{plural}"

  puts " "
end