BequestDeCendresWordGenerator 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3a4503b01ed81d4546f8522d8dce88b7be0c58b26c094e6793edd19537154ca0
4
+ data.tar.gz: 3737d7fe3976afc9ae6b331f9b05afd0d1e1139d1ba9f5a686fe4b1d954a1b04
5
+ SHA512:
6
+ metadata.gz: c93ced8e25eacce497bee6103f5ca2ae25f57026d75b33e65f5a06309f14fb0d25c13575c5f3d127b45a36a0cdd36f48b91ff1b54829b9311407f373c20e2f32
7
+ data.tar.gz: 947ef5a8d4cfd6f0933859a4e774b6b95635c905e4c5c1eac8a4a7fc7fb5578489e1ea541b124a3c44765ca80a8c9375b8433b0421b4cc8996d57d2f40d82447
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # BequestDeCendresWordGenerator
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/BequestDeCendresWordGenerator`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/BequestDeCendresWordGenerator.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BequestDeCendresWordGenerator
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "BequestDeCendresWordGenerator/version"
4
+
5
+ module BequestDeCendresWordGenerator
6
+ class Error < StandardError; end
7
+
8
+ class GeneratePortManteau
9
+ def self.current_location
10
+ hybrid_genders = [
11
+ [["Te", "Te"], ["Te", "Ta"], ["Te", "Tos"]],
12
+ [["Ta" , "Te"], ["Ta", "Ta"], ["Ta", "Tos"]],
13
+ [["Tos", "Te"], ["Tos", "Ta"], ["Tos", "Tos"]],
14
+ ]
15
+
16
+ gender_row_options = [0, 1, 2]
17
+ gender_col_options = [0, 1, 2]
18
+ gender_arr_options = [0, 1]
19
+
20
+ gender_cur_row = gender_row_options.sample
21
+ gender_cur_col = gender_col_options.sample
22
+ gender_cur_arr = gender_arr_options.sample
23
+
24
+ h_gender = hybrid_genders[gender_cur_row][gender_cur_col][gender_cur_arr]
25
+
26
+ # ie shado gareji ribingurumu roka daidakoro shinku aisubokkusu uindo basurumu shinshitsu
27
+ # ie i,i i,s1 i,g i,r1 i,r2 i,d i,s2 i,a i,u i.b i,s3 # House
28
+ # shado s1,i s1,s1 s1,g s1,r1 s1,r2 s1,d s1,s2 s1,a s1,u s1.b s1,s3 # Slope
29
+ # gareji g,i g,s1 g,g g,r1 g,r2 g,d g,s2 g,a g,u g.b g,s3 # Garage
30
+ # 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
31
+ # roka g,i g,s1 g,g g,r1 g,r2 g,d g,s g,a g,u g.b g,s3 # Fridge
32
+ # 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
33
+ # shinku s2,i s2,s1 s2,g s2,r1 s2,r2 s2,d s2,s s2,a s2,u s2.b s2,s3 # Sink
34
+ # 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
35
+ # uindo u,i u,s1 u,g u,r1 u,r2 u,d u,s u,a u,u u.b u,s2 # Window
36
+ # basurumu b,i b,s1 b,g b,r1 b,r2 b,d b,s b,a b,u b.b b,s2 # Bathroom
37
+ # shinshitsu s3,i s3,s1 s3,g s3,r1 s3,r2 s3,d s3,s s3,a s3,u s3.b s3,s2 # Bedroom
38
+
39
+ locations = [
40
+ [["Ie", "Ie"], ["Ie", "Shado"], ["Ie", "Gareji"], ["Ie", "Ribingurumu"], ["Ie", "Roka"], ["Ie", "Daidakoro"], ["Ie", "Shinku"], ["Ie", "Aisubokkusu"], ["Ie", "Uindo"], ["Ie", "Basurumu"], ["Ie", "Shinshitsu"]],
41
+ [["Shadi" , "Ie"], ["Shado", "Shado"], ["Shado", "Gareji"], ["Shado", "Ribingurumu"], ["Shado" , "Roka"], ["Shado", "Daidakoro"], ["Shado", "Shinku"], ["Shado", "Aisubokkusu"], ["Shado", "Uindo"], ["Shado", "Basurumu"], ["Shado", "Shinshitsu"]],
42
+ [["Gareji", "Ie"], ["Gareji", "Shado"], ["Gareji", "Gareji"], ["Gareji", "Ribingurumu"], ["Gareji", "Roka"], ["Gareji", "Daidakoro"], ["Gareji", "Shinku"], ["Gareji", "Aisubokkusu"], ["Garehi", "Uindo"], ["Gareji", "Basurumu"], ["Shadow", "Shinshitsu"]],
43
+ [["Ribingurumu", "Ie"], ["Ribingurumu", "Shado"], ["Ribingurumu", "Gareji"], ["Ribingurumu", "Ribingurumu"], ["Ribingurumu", "Roka"], ["Ribingurumu", "Daidakoro"], ["Ribingurumu", "Shinku"], ["Ribingurumu", "Aisubokkusu"], ["Ribingurumu", "Uindo"], ["Ribingurumu", "Basurumu"], ["Ribingurumu", "Shinshitsu"]],
44
+ [["Roka", "Ie"], ["Roka", "Shado"], ["Roka", "Gareji"], ["Roka", "Ribingurumu"], ["Roka", "Roka"], ["Roka", "Daidakoro"], ["Roka", "Shinku"], ["Roka", "Aisubokkusu"], ["Roka", "Uindo"], ["Roka", "Basurumu"], ["Roka", "Shinshitsu"]],
45
+ [["Daidakoro", "Ie"], ["Daidakoro", "Shado"], ["Daidakoro", "Gareji"], ["Daidakoro", "Ribingurumu"], ["Daidakoro", "Roka"], ["Daidakoro", "Daidakoro"], ["Daidakoro", "Shinku"], ["Daidakoro", "Aisubokkusu"], ["Daidakoro", "Uindo"], ["Daidakoro", "Basurumu"], ["Daidakoro", "Shinshitsu"]],
46
+ [["Shinku", "Ie"], ["Shinku", "Shado"], ["Shinku", "Gareji"], ["Shinku", "Ribingurumu"], ["Shinku", "Roka"], ["Shinku", "Daidakoro"], ["Shinku", "Shinku"], ["Shinku", "Aisubokkusu"], ["Shinku", "Uindo"], ["Shinku", "Basurumu"], ["Shinku", "Shinshitsu"]],
47
+ [["aisubokkusu", "Ie"], ["Aisubokkusu", "Shado"], ["Aisubokkusu", "Gareji"], ["Aisubokkusu", "Ribingurumu"], ["Aisubokkusu", "Roka"], ["Aisubokkusu", "Daidakoro"], ["Aisubokkusu", "Shinku"], ["Aisubokkusu", "Aisubokkusu"], ["Aisubokkusu", "Uindo"], ["Aisubokkusu", "Basurumu"], ["Aisubokkusu", "Shinshitsu"]],
48
+ [["Uindo", "Ie"], ["Uindo", "Shado"], ["Uindo", "Gareji"], ["Uindo" , "Ribingurumu"], ["Uindo", "Roka"], ["Uindo", "Daidakoro"], ["Uindo", "Shinku"], ["Uindo", "Aisubokkusu"], ["Uindo", "Uindo"], ["Uindo", "Basurumu"], ["Uindo", "Shinshitsu"]],
49
+ [["Basurumu", "Ie"], ["Basurumu", "Shado"], ["Basurumu", "Gareji"], ["Basurumu", "Ribingurumu"], ["Basurumu", "Roka"], ["Basurumu", "Daidakoro"], ["Basurumu", "Shinku"], ["Basurumu", "Aisubokkusu"], ["Basurumu", "Uindo"], ["Basurumu", "Basurumu"], ["Basurumu", "Shinshitsu"]],
50
+ [["Shinshitsu", "Ie"], ["Shinsitsu", "Shado"], ["Shinsitsu", "Gareji"], ["Shinshitsu", "Ribingurumu"], ["Shinshitsu", "Roka"], ["Shinshitsu", "Daidakoro"], ["Shinshitsu", "Shinku"], ["Shinshitsu", "Aisubokkusu"], ["Shinshitsu", "Uindo"], ["Shinshitsu", "Basurumu"], ["Shinshitsu", "Shinshitsu"]],
51
+ ]
52
+
53
+ location_row_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
54
+ location_col_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
55
+ location_arr_options = [0, 1]
56
+
57
+ l_cur_row = location_row_options.sample
58
+ l_cur_col = location_col_options.sample
59
+ l_cur_arr = location_arr_options.sample
60
+
61
+ @cur_location = locations[l_cur_row][l_cur_col][l_cur_arr]
62
+ end
63
+
64
+ def self.current_verb
65
+ # guache entre sortie porte canape pratiquer manger lave merde dorm mur
66
+ # 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
67
+ # entre e,g e,e e,s e,p e,c e,p e,m1 e,l e,m2 e,d e,m3 # Between
68
+ # sortie s,g s,e s,s s,p s,c s,p s,m1 s,l s,m2 s,d s,m3 # Exit
69
+ # porte p,g p,e p,s p,p p,c p,p p,m1 p,l p,m2 p,d p,m3 # Door
70
+ # canape c,g c,e c,s c,p c,c c,p c,m1 c,l c,m2 c,d c,m3 # Couch
71
+ # pratiquer p,g p,e p,s p,p p,c p,p p,m1 p,l p,m2 p,d p,m3 # Practice
72
+ # 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
73
+ # 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
74
+ # 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 )
75
+ # dorm d,g d,e d,s d,p d,c d,p d,m1 d,l d,m2 d,d d,m3 # Sleep
76
+ # mur m3,g m3,e m3,s m3,p m3,c m3,p m3,m1 m3,l m3,m m3,d m3,m2 # Wall
77
+
78
+ #begin
79
+
80
+ verbs = [
81
+ [["gouache", "gouache"], ["gouache", "entre"], ["gouache", "sortie"], ["gouache", "porte"], ["gouache", "canape"], ["gouache", "pratiquer"], ["gouache", "manger"], ["gouache", "laver"], ["gouache", "merde"], ["gouache", "dorm"], ["gouache", "mur"]],
82
+ [["entre", "gouache"], ["entre", "entre"], ["entre", "sortie"], ["entre", "porte"], ["entre", "canape"], ["entre", "pratiquer"], ["entre", "manger"], ["entre", "laver"], ["entre", "merde"], ["entre", "dorm"], ["entre", "mur"]],
83
+ [["sortie", "gouache"], ["sortie", "entre"], ["sortie", "sortie"], ["sortie", "porte"], ["sortie", "canape"], ["sortie", "pratiquer"], ["sortie", "manger"], ["sortie", "laver"], ["sortie", "merde"], ["sortie", "dorm"], ["sortie", "mur"]],
84
+ [["porte", "gouache"], ["porte", "entre"], ["porte", "sortie"], ["porte", "porte"], ["porte", "canape"], ["porte", "pratiquer"], ["porte", "manger"], ["porte", "laver"], ["porte", "merde"], ["porte", "dorm"], ["prte", "mur"]],
85
+ [["canape", "gouache"], ["canape", "entre"], ["canape", "sortie"], ["canape", "porte"], ["canape", "canape"], ["canape", "pratiquer"], ["canape", "manger"], ["canape", "laver"], ["canape", "merde"], ["canape", "dorm"], ["canape", "mur"]],
86
+ [["pratiquer", "gouache"], ["pratiquer", "entre"], ["pratiquer", "sortie"], ["pratiquer", "porte"], ["pratiquer", "canape"], ["pratiquer", "pratiquer"], ["pratiquer", "manger"], ["pratiquer", "laver"], ["pratiquer", "merde"], ["pratiquer", "dorm"], ["pratiquer", "mur"]],
87
+ [["manger", "gouache"], ["manger", "entre"], ["manger", "sortie"], ["manger", "porte"], ["manger", "canape"], ["manger", "pratiquer"], ["manger", "manger"], ["manger", "laver"], ["manger", "merde"], ["manger", "dorm"], ["manger", "mur"]],
88
+ [["laver", "gouache"], ["laver", "entre"], ["laver", "sortie"], ["laver", "porte"], ["laver", "canape"], ["laver", "pratiquer"], ["laver", "manger"], ["laver", "laver"], ["laver", "merde"], ["laver", "dorm"], ["laver", "mur"]],
89
+ [["merde", "gouache"], ["merde", "entre"], ["merde" , "sortie"], ["merde", "porte"], ["merde", "canape"], ["merde", "pratiquer"], ["merde", "manger"], ["merde", "laver"], ["merde", "merde"], ["merde", "dorm"], ["merde", "mur"]],
90
+ [["dorm", "gouache"], ["dorm", "entre"], ["dorm", "sortie"], ["dorm", "porte"], ["dorm", "canape"], ["dorm", "pratiquer"], ["dorm", "manger"], ["dorm", "laver"], ["dorm", "merde"], ["dorm", "dorm"], ["dorm", "mur"]],
91
+ [["mur", "gouache"], ["mur", "entre"], ["mur", "sortie"], ["mur", "porte"], ["mur", "canape"], ["mur", "pratiquer"], ["mur", "manger"], ["mur", "laver"], ["mur", "merde"], ["mur", "dorm"], ["mur", "mur"]],
92
+ ]
93
+
94
+ verb_row_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
95
+ verb_col_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
96
+ verb_arr_options = [0, 1]
97
+
98
+ v_cur_row = verb_row_options.sample
99
+ v_cur_col = verb_row_options.sample
100
+ v_cur_arr = verb_arr_options.sample
101
+
102
+ @cur_verb = verbs[v_cur_row][v_cur_col][v_cur_arr]
103
+ end
104
+
105
+ def self.omeleisetango
106
+ @current_word = "#{@cur_location.downcase.reverse}#{@cur_verb}"
107
+
108
+ File.open("lib/language/omeleisetango.txt", "a") { |f|
109
+ f.puts @current_word
110
+ }
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,4 @@
1
+ module BequestDeCendresWordGenerator
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: BequestDeCendresWordGenerator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - LWFlouisa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-07-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: As part of the library for Bequest De Cendres language generation features,
14
+ one of these is based on creating port manteau. And folding words over on themself.
15
+ email:
16
+ - lwflouisa@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - Rakefile
23
+ - lib/BequestDeCendresWordGenerator.rb
24
+ - lib/BequestDeCendresWordGenerator/version.rb
25
+ - sig/BequestDeCendresWordGenerator.rbs
26
+ homepage: https://lwflouisa.itch.io/
27
+ licenses: []
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.0
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.3.5
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Develops port manteau based around the concept of words being folded over
48
+ on themselves like an omulet.
49
+ test_files: []