onvkv_seteyoposecetv 0.1.1

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: 3b4ee06be0304fc7f68bb6d0639c6f853a267808f327dcb14271d8f8cabf5c6c
4
+ data.tar.gz: 8108aa939ce45862327b345cb151f64f46998779054be123e908ee56b0e481ee
5
+ SHA512:
6
+ metadata.gz: 9b3acb4446cfc14431160bd21679ccb06a0df29c95cad77d6b893b3c8ec011f2381beca41fdbc9179edf9cce12d361647ef3a23a48c24e0bc4725b439d290080
7
+ data.tar.gz: e4e00f36f66e2c2af90c991813a5e4e27a9fd52fa56cc7b75a89e26eb51e4b5f46ea90711c78d2d80c0f2ffe1f3f5f31bf3c0d2f516afc04144bbcd8aa34e835
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-04-04
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at rhosford@eab.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in onvkv_seteyoposecetv.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+ gem "minitest-focus"
12
+ gem "pry"
13
+ gem "pry-byebug"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Tad Hosford
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # OnvkvSeteyoposecetv
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/onvkv_seteyoposecetv`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_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
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ 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).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/onvkv_seteyoposecetv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/onvkv_seteyoposecetv/blob/main/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the OnvkvSeteyoposecetv project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/onvkv_seteyoposecetv/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ task default: %i[test]
@@ -0,0 +1,191 @@
1
+ module Conjugators
2
+ module ActionVerbs
3
+ class FutureTense
4
+ extend Conjugators::ActionVerbs::Shared
5
+ # Note, MVSKOKE language here
6
+ def initialize(verb)
7
+ @verb = verb
8
+
9
+ raise "Invalid verb. Verb must end with 'etv'." unless @verb.end_with?("etv")
10
+
11
+ @irregular = !!irregulars[@verb]
12
+ end
13
+
14
+ def conjugate!
15
+ {
16
+ verb: @verb,
17
+ first_person_singular: {
18
+ basic: conjugate(tense: :conjugate_1ps, type: :basic_present),
19
+ },
20
+ second_person_singular: {
21
+ basic: conjugate(tense: :conjugate_2ps, type: :basic_present),
22
+ },
23
+ third_person_singular: {
24
+ basic: conjugate(tense: :conjugate_3ps, type: :basic_present),
25
+ },
26
+ first_person_plural: {
27
+ basic: conjugate(tense: :conjugate_1pp, type: :basic_present),
28
+ },
29
+ second_person_plural: {
30
+ basic: conjugate(tense: :conjugate_2pp, type: :basic_present),
31
+ },
32
+ third_person_plural: {
33
+ basic: conjugate(tense: :conjugate_3pp, type: :basic_present),
34
+ }
35
+ }
36
+ end
37
+
38
+ private
39
+ def conjugate(type:, tense:)
40
+ @type = type
41
+ case type
42
+ when :basic_present
43
+ result = send(tense)
44
+ if result[0].is_a?(String)
45
+ [result.map {|r| r + ?s }]
46
+ else
47
+ if @irregular
48
+ case result.size
49
+ when 1
50
+ rr_2plus = result[0].map {|r| "#{r}s (of 2+)"}
51
+ [rr_2plus]
52
+ when 2
53
+ rr2 = result[0].map {|r| "#{r}s (of 2)" }
54
+ rr3_plus = result[1].map {|r| "#{r}s (of 3+)"}
55
+ [rr2, rr3_plus]
56
+ end
57
+ else
58
+ result.map do |verb_form|
59
+ verb_form.map do |dialectic_option|
60
+ "#{dialectic_option}s"
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+
68
+ def conjugating_each_dialectic_option(dialectic_person_marker_options)
69
+ dialectic_person_marker_options.map do |person_marker|
70
+ yield(person_marker)
71
+ end
72
+ end
73
+
74
+ def conjugate_1ps
75
+ conjugating_each_dialectic_option(self.class.person_markers['1ps']) do |person_marker|
76
+ @verb_to_conjugate = @verb.dup
77
+ drop_the_etv!
78
+ add_person_marker!(person_marker)
79
+ end
80
+ end
81
+
82
+ def conjugate_2ps
83
+ conjugating_each_dialectic_option(self.class.person_markers['2ps']) do |person_marker|
84
+ @verb_to_conjugate = @verb.dup
85
+ drop_the_etv!
86
+ add_person_marker!(person_marker)
87
+ end
88
+ end
89
+
90
+ def conjugate_3ps
91
+ conjugating_each_dialectic_option(self.class.person_markers['3ps']) do |person_marker|
92
+ @verb_to_conjugate = @verb.dup
93
+ drop_the_etv!
94
+ add_person_marker!(person_marker)
95
+ end
96
+ end
97
+
98
+ def conjugate_1pp
99
+ results = []
100
+ if plural_forms = self.class.irregulars[@verb]&.values_at(2,3)&.compact
101
+ plural_forms.each do |verb|
102
+ results << conjugating_each_dialectic_option(self.class.person_markers['1pp']) do |person_marker|
103
+ @verb_to_conjugate = verb.dup
104
+ drop_the_etv!
105
+
106
+ add_person_marker!(person_marker)
107
+ end
108
+ end
109
+ else
110
+ results << conjugating_each_dialectic_option(self.class.person_markers['1pp']) do |person_marker|
111
+ @verb_to_conjugate = @verb.dup
112
+ drop_the_etv!
113
+ add_person_marker!(person_marker)
114
+ end
115
+ end
116
+
117
+ results
118
+ end
119
+
120
+ def conjugate_2pp
121
+ results = []
122
+ if plural_forms = self.class.irregulars[@verb]&.values_at(2,3)&.compact
123
+ plural_forms.each do |verb|
124
+ results << conjugating_each_dialectic_option(self.class.person_markers['2pp']) do |person_marker|
125
+ @verb_to_conjugate = verb.dup
126
+ drop_the_etv!
127
+ add_person_marker!(person_marker)
128
+ end
129
+ end
130
+ else
131
+ results << conjugating_each_dialectic_option(self.class.person_markers['2pp']) do |person_marker|
132
+ @verb_to_conjugate = @verb.dup
133
+ drop_the_etv!
134
+ add_person_marker!(person_marker)
135
+ end
136
+ end
137
+
138
+ results
139
+ end
140
+
141
+ def conjugate_3pp
142
+ results = []
143
+ if plural_forms = self.class.irregulars[@verb]&.values_at(2,3)&.compact
144
+ plural_forms.each do |verb|
145
+ results << conjugating_each_dialectic_option(self.class.person_markers['3pp']) do |person_marker|
146
+ @verb_to_conjugate = verb.dup
147
+ drop_the_etv!
148
+
149
+ # (probably) don't need 'ak' in 'akes' because it's already plural
150
+ #add_person_marker!(person_marker)
151
+
152
+ # instead
153
+ @verb_to_conjugate + "vrē"
154
+ end
155
+ end
156
+ else
157
+ results << conjugating_each_dialectic_option(self.class.person_markers['3pp']) do |person_marker|
158
+ @verb_to_conjugate = @verb.dup
159
+ drop_the_etv!
160
+ add_person_marker!(person_marker)
161
+ end
162
+ end
163
+
164
+ results
165
+ end
166
+
167
+ def drop_the_etv!
168
+ @verb_to_conjugate.gsub!(/etv\z/, "")
169
+ end
170
+
171
+ def irregulars
172
+ self.class.irregulars
173
+ end
174
+
175
+ def add_person_marker!(person_marker)
176
+ @verb_to_conjugate + person_marker
177
+ end
178
+
179
+ def self.person_markers
180
+ {
181
+ '1ps' => %w{ arē },
182
+ '2ps' => %w{ etskvrē },
183
+ '3ps' => %w{ vrē },
184
+ '1pp' => %w{ ēyvrē },
185
+ '2pp' => %w{ atskvrē },
186
+ '3pp' => %w{ vkvrē },
187
+ }
188
+ end
189
+ end
190
+ end
191
+ end
@@ -0,0 +1,153 @@
1
+ module Conjugators
2
+ module ActionVerbs
3
+ class ImperativeMood
4
+ extend Conjugators::ActionVerbs::Shared
5
+ # Note, MVSKOKE language here
6
+ def initialize(verb)
7
+ @verb = verb
8
+
9
+ raise "Invalid verb. Verb must end with 'etv'." unless @verb.end_with?("etv")
10
+
11
+ @irregular = !!irregulars[@verb]
12
+ end
13
+
14
+ def conjugate!
15
+ {
16
+ verb: @verb,
17
+ second_person_singular: {
18
+ basic: conjugate(tense: :conjugate_2ps, type: :basic),
19
+ polite: conjugate(tense: :conjugate_2ps, type: :polite),
20
+ do_not: conjugate(tense: :conjugate_2ps, type: :do_not),
21
+ },
22
+ second_person_plural: {
23
+ basic: conjugate(tense: :conjugate_2pp, type: :basic),
24
+ polite: conjugate(tense: :conjugate_2pp, type: :polite),
25
+ do_not: conjugate(tense: :conjugate_2pp, type: :do_not),
26
+ lets: conjugate(tense: :conjugate_2pp, type: :lets),
27
+ },
28
+ }
29
+ end
30
+
31
+ private
32
+ def conjugate(type:, tense:)
33
+ @type = type
34
+ case type
35
+ when :do_not
36
+ result = send(tense, type)
37
+ if result[0].is_a?(String)
38
+ [result]
39
+ else
40
+ if @irregular
41
+ case result.size
42
+ when 1
43
+ rr_2plus = result[0].map {|r| "#{r} (of 2+)"}
44
+ [rr_2plus]
45
+ when 2
46
+ rr2 = result[0].map {|r| "#{r} (of 2)" }
47
+ rr3_plus = result[1].map {|r| "#{r} (of 3+)"}
48
+ [rr2, rr3_plus]
49
+ end
50
+ else
51
+ result.map do |verb_form|
52
+ verb_form.map do |dialectic_option|
53
+ "#{dialectic_option}"
54
+ end
55
+ end
56
+ end
57
+ end
58
+ when :basic, :polite, :lets
59
+ result = send(tense, type)
60
+ if result[0].is_a?(String)
61
+ [result.map {|r| r + ?s }]
62
+ else
63
+ if @irregular
64
+ case result.size
65
+ when 1
66
+ rr_2plus = result[0].map {|r| "#{r}s (of 2+)"}
67
+ [rr_2plus]
68
+ when 2
69
+ rr2 = result[0].map {|r| "#{r}s (of 2)" }
70
+ rr3_plus = result[1].map {|r| "#{r}s (of 3+)"}
71
+ [rr2, rr3_plus]
72
+ end
73
+ else
74
+ result.map do |verb_form|
75
+ verb_form.map do |dialectic_option|
76
+ "#{dialectic_option}s"
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
83
+
84
+ def conjugating_each_dialectic_option(dialectic_person_marker_options)
85
+ dialectic_person_marker_options.map do |person_marker|
86
+ yield(person_marker)
87
+ end
88
+ end
89
+
90
+ def conjugate_2ps(type)
91
+ conjugating_each_dialectic_option(self.class.person_markers[type]['2ps']) do |person_marker|
92
+ @verb_to_conjugate = @verb.dup
93
+ drop_the_etv!
94
+ add_person_marker!(person_marker)
95
+ end
96
+ end
97
+
98
+ def conjugate_2pp(type)
99
+ results = []
100
+ if plural_forms = self.class.irregulars[@verb]&.values_at(2,3)&.compact
101
+ raise unless @irregular
102
+ plural_forms.each do |verb|
103
+ results << conjugating_each_dialectic_option(self.class.person_markers[type]['2pp']) do |person_marker|
104
+ @verb_to_conjugate = verb.dup
105
+ drop_the_etv!
106
+ add_person_marker!(person_marker)
107
+ end
108
+ end
109
+ else
110
+ results << conjugating_each_dialectic_option(self.class.person_markers[type]['2pp']) do |person_marker|
111
+ @verb_to_conjugate = @verb.dup
112
+ drop_the_etv!
113
+ add_person_marker!(person_marker)
114
+ end
115
+ end
116
+
117
+ results
118
+ end
119
+
120
+ def drop_the_etv!
121
+ @verb_to_conjugate.gsub!(/etv\z/, "")
122
+ end
123
+
124
+ def irregulars
125
+ self.class.irregulars
126
+ end
127
+
128
+ def add_person_marker!(person_marker)
129
+ @verb_to_conjugate + person_marker
130
+ end
131
+
132
+ def self.person_markers
133
+ {
134
+ basic: {
135
+ '2ps' => %w{ v },
136
+ '2pp' => %w{ vk },
137
+ },
138
+ polite: {
139
+ '2ps' => %w{ epv },
140
+ '2pp' => %w{ epv },
141
+ },
142
+ do_not: {
143
+ '2ps' => %w{ ekot },
144
+ '2pp' => %w{ ekot },
145
+ },
146
+ lets: {
147
+ '2pp' => %w{ vkēt },
148
+ },
149
+ }
150
+ end
151
+ end
152
+ end
153
+ end