Skip to content

Commit

Permalink
Add adjective pronunciations
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysonvirissimo committed Nov 28, 2023
1 parent 8c1f0b0 commit 64ee3d2
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 113 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
medieval_latina (2.0.1)
medieval_latina (2.0.2)
i18n

GEM
Expand Down
4 changes: 2 additions & 2 deletions lib/medieval_latina.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.prepare_word(word)
end

def self.adjective?(word)
ADJECTIVES.member?(prepare_word(word))
ADJECTIVES.key?(prepare_word(word))
end

def self.adverb?(word)
Expand All @@ -53,7 +53,7 @@ def self.verb?(word)
end

def self.adjectives
ADJECTIVES
ADJECTIVES.keys
end

def self.adverbs
Expand Down
216 changes: 108 additions & 108 deletions lib/medieval_latina/dictionary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,113 +11,113 @@ class MedievalLatina
"Verb"
].to_set.freeze

ADJECTIVES = %w[
acer
acerbus
adultus
aeguus
alius
altus
asper
audax
aureus
avarus
bellus
brevis
carus
celer
certus
civilis
clarus
communis
conscius
crudelis
cupidus
demens
desidiosus
difficilis
dignus
doctus
dulcis
durus
eloquens
eximius
extremus
facilis
falsus
felix
ferus
fortis
fortunatus
gratus
humanus
humilis
immortalis
inanis
incertus
infirmus
informis
ingens
iniustus
integer
invictus
iratus
iustus
laetus
levis
liber
longus
magnus
malus
medius
meus
militaris
mirus
mortalis
multus
novus
obstinatus
opportunus
parvus
plenus
praeclarus
praeteritus
proprius
prudens
publicus
pudicus
pulcher
rarus
rectus
rusticus
sacer
sacrilegus
salvus
sanctus
sapiens
scelestus
securus
serius
similis
simplex
sollicitus
solus
stabilis
studiosus
subitus
superbus
tardus
totus
tristis
turpis
tuus
urbanus
utilis
vehemens
velox
verus
vetus
].to_set.freeze
ADJECTIVES = {
"acer" => "ˈakɛr",
"acerbus" => "ˈakɛrbʊs",
"adultus" => "aˈdʊltʊs",
"aeguus" => "ˈaɛɡuːs",
"alius" => "ˈaliʊs",
"altus" => "ˈaltʊs",
"asper" => "ˈaspɛr",
"audax" => "ˈaʊdaks",
"aureus" => "aʊˈrɛʊs",
"avarus" => "ˈaʋarʊs",
"bellus" => "ˈbɛllʊs",
"brevis" => "ˈbrɛʋɪs",
"carus" => "ˈkarʊs",
"celer" => "ˈkɛlɛr",
"certus" => "ˈkɛrtʊs",
"civilis" => "ˈkɪʋɪlɪs",
"clarus" => "ˈklarus",
"communis" => "kɔmˈmunɪs",
"conscius" => "ˈkɔnskɪʊs",
"crudelis" => "ˈkrudɛlɪs",
"cupidus" => "ˈkupɪdʊs",
"demens" => "ˈdɛmɛns",
"desidiosus" => "dɛsɪˈdjɔsʊs",
"difficilis" => "dɪfˈfɪkɪlɪs",
"dignus" => "ˈdɪɲnʊs",
"doctus" => "ˈdɔktʊs",
"dulcis" => "ˈdʊlkɪs",
"durus" => "ˈdʊrʊs",
"eloquens" => "ɛˈlɔkwɛns",
"eximius" => "ɛkˈsɪmɪʊs",
"extremus" => "ɛksˈtrɛmʊs",
"facilis" => "ˈfakɪlɪs",
"falsus" => "ˈfalsʊs",
"felix" => "ˈfɛlɪks",
"ferus" => "ˈfɛrʊs",
"fortis" => "ˈfɔrtɪs",
"fortunatus" => "fɔrtʊˈnatʊs",
"gratus" => "ˈɡratʊs",
"humanus" => "ˈhʊmanʊs",
"humilis" => "ˈhʊmɪlɪs",
"immortalis" => "ɪmˈmɔrtalɪs",
"inanis" => "ɪˈnanɪs",
"incertus" => "ɪnˈkɛrtʊs",
"infirmus" => "ɪnˈfɪrmʊs",
"informis" => "ɪnˈfɔrmɪs",
"ingens" => "ˈɪnɡɛns",
"iniustus" => "ɪˈnjʊstʊs",
"integer" => "ˈɪntɛɡɛr",
"invictus" => "ɪnˈʋɪktʊs",
"iratus" => "ɪˈratʊs",
"iustus" => "ˈjʊstʊs",
"laetus" => "ˈlɛtʊs",
"levis" => "ˈlɛʋɪs",
"liber" => "ˈlɪbɛr",
"longus" => "ˈlɔŋɡʊs",
"magnus" => "ˈmaŋnʊs",
"malus" => "ˈmalʊs",
"medius" => "ˈmɛdjʊs",
"meus" => "ˈmɛʊs",
"militaris" => "mɪlɪˈtarɪs",
"mirus" => "ˈmɪrʊs",
"mortalis" => "mɔrˈtalɪs",
"multus" => "ˈmʊltʊs",
"novus" => "ˈnɔʋʊs",
"obstinatus" => "ɔbstɪˈnatʊs",
"opportunus" => "ɔpˈpɔrtʊnʊs",
"parvus" => "ˈparʋʊs",
"plenus" => "ˈplɛnʊs",
"praeclarus" => "prɛˈklarus",
"praeteritus" => "praɪˈtɛrɪtʊs",
"proprius" => "ˈprɔprɪʊs",
"prudens" => "ˈprʊdɛns",
"publicus" => "ˈpʊblɪkʊs",
"pudicus" => "ˈpʊdɪkʊs",
"pulcher" => "ˈpʊlkɛr",
"rarus" => "ˈrarʊs",
"rectus" => "ˈrɛktʊs",
"rusticus" => "ˈrʊstɪkʊs",
"sacer" => "ˈsakɛr",
"sacrilegus" => "sakrɪˈlɛɡʊs",
"salvus" => "ˈsalʋʊs",
"sanctus" => "ˈsanktʊs",
"sapiens" => "ˈsapɪɛns",
"scelestus" => "skɛˈlɛstʊs",
"securus" => "sɛˈkʊrʊs",
"serius" => "ˈsɛrɪʊs",
"similis" => "ˈsɪmɪlɪs",
"simplex" => "ˈsɪmplɛks",
"sollicitus" => "sɔlˈlɪkɪtʊs",
"solus" => "ˈsɔlʊs",
"stabilis" => "ˈstabilɪs",
"studiosus" => "stuˈdjɔsʊs",
"subitus" => "ˈsʊbɪtʊs",
"superbus" => "sʊˈpɛrbʊs",
"tardus" => "ˈtardʊs",
"totus" => "ˈtɔtʊs",
"tristis" => "ˈtrɪstɪs",
"turpis" => "ˈtʊrpɪs",
"tuus" => "ˈtʊʊs",
"urbanus" => "ʊrˈbanʊs",
"utilis" => "ˈʊtɪlɪs",
"vehemens" => "ʋɛˈhɛmɛns",
"velox" => "ˈʋɛlɔks",
"verus" => "ˈʋɛrʊs",
"vetus" => "ˈʋɛtʊs"
}.freeze

ADVERBS = %w[
abhinc
Expand Down Expand Up @@ -695,7 +695,7 @@ class MedievalLatina
].to_set.freeze

FREQUENCY_LIST = {
"et" => {meaning: "and", part: "Conjunction", pronunciation: "ett"},
"et" => {meaning: "and", part: "Conjunction", pronunciation: "ett", ipa: "ɛt"},
"sum" => {meaning: "be, exist", part: "Verb"},
"esse" => {meaning: "be, exist", part: "Verb"},
"fuī" => {meaning: "be, exist", part: "Verb"},
Expand Down
2 changes: 1 addition & 1 deletion lib/medieval_latina/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class MedievalLatina
VERSION = "2.0.1".freeze
VERSION = "2.0.2".freeze
end
3 changes: 2 additions & 1 deletion spec/medieval_latina_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
:conjugation,
:declension,
:gender,
:pronunciation
:pronunciation,
:ipa
])
actual_keys = Set.new
subject.values.each do |metadata|
Expand Down

0 comments on commit 64ee3d2

Please sign in to comment.