Open qomhmd opened 11 months ago
Hey there - I think this is already done inside of syns
and ants
:
library(syn)
syn_thanks_awesome <- syns(c("thanks", "awesome"))
names(syn_thanks_awesome)
#> [1] "thanks" "awesome"
syn_thanks_awesome$thanks
#> [1] "acknowledgment" "aid prayer" "Angelus" "appeal"
#> [5] "Ave" "Ave Maria" "beadroll" "beads"
#> [9] "benediction" "beseechment" "bidding prayer" "blessing"
#> [13] "breviary" "chaplet" "cognizance" "collect"
#> [17] "communion" "contemplation" "credit" "crediting"
#> [21] "devotions" "entreaty" "grace" "Hail Mary"
#> [25] "hymn" "impetration" "imploration" "intercession"
#> [29] "invocation" "Kyrie Eleison" "litany" "meditation"
#> [33] "obsecration" "obtestation" "orison" "paean"
#> [37] "Paternoster" "petition" "praise" "prayer"
#> [41] "prayer of thanks" "prayer wheel" "recognition" "rogation"
#> [45] "rosary" "silent prayer" "suit" "supplication"
#> [49] "thank offering" "thank-you" "thanks" "thanksgiving"
syn_thanks_awesome$awesome
#> [1] "affecting" "aggrandized" "alarming" "amazing"
#> [5] "amplitudinous" "apotheosized" "appalling" "astonishing"
#> [9] "astounding" "astronomical" "august" "awe-inspiring"
#> [13] "awesome" "awful" "awing" "beatified"
#> [17] "big" "bizarre" "boundless" "breathtaking"
#> [21] "bulky" "canonized" "colossal" "cosmic"
#> [25] "daunting" "deified" "dire" "direful"
#> [29] "divine" "dread" "dreaded" "dreadful"
#> [33] "eerie" "elevated" "eminent" "ennobled"
#> [37] "enormous" "enshrined" "enthroned" "estimable"
#> [41] "exalted" "excellent" "extensive" "fearful"
#> [45] "fearsome" "fell" "formidable" "frightening"
#> [49] "galactic" "Gargantuan" "ghastly" "ghoulish"
#> [53] "gigantic" "glorified" "grand" "great"
#> [57] "grim" "grisly" "gruesome" "heavenly"
#> [61] "held in awe" "hideous" "high" "high and mighty"
#> [65] "holy" "honorable" "horrendous" "horrible"
#> [69] "horrid" "horrific" "horrifying" "huge"
#> [73] "immeasurable" "immense" "immortal" "immortalized"
#> [77] "imposing" "incredible" "ineffable" "inenarrable"
#> [81] "inexpressible" "infinite" "inviolable" "inviolate"
#> [85] "king-size" "large" "lofty" "macabre"
#> [89] "magnified" "mammoth" "massive" "massy"
#> [93] "mighty" "monster" "monstrous" "monumental"
#> [97] "morbid" "mountainous" "moving" "mysterious"
#> [101] "numinous" "outsize" "overgrown" "overwhelming"
#> [105] "prodigious" "redoubtable" "religious" "reverend"
#> [109] "sacred" "sacrosanct" "sainted" "sanctified"
#> [113] "schrecklich" "shocking" "shrined" "sizable"
#> [117] "spacious" "spiritual" "stirring" "stunning"
#> [121] "stupefying" "stupendous" "sublime" "supereminent"
#> [125] "terrible" "terrific" "terrifying" "throned"
#> [129] "time-honored" "titanic" "tremendous" "unbelievable"
#> [133] "uncanny" "unspeakable" "untouchable" "unutterable"
#> [137] "vast" "venerable" "voluminous" "weighty"
#> [141] "weird" "wonderful" "wondrous" "worshipful"
ant_cool_good <- ants(c("cool", "good"))
names(ant_cool_good)
#> [1] "cool" "good"
ant_cool_good$cool
#> [1] "heat" "warm"
ant_cool_good$good
#> [1] "bad" "evil"
Created on 2023-12-01 with reprex v2.0.2
Does this cover what you wanted, or were you asking about syn
or ant
? If you want the same output but for one word you can use syns
or ants
but just provide one word.
Let me know if this answers your question :)
As a feature request, I should say that having a "default" word which represents the list of synonyms or antonyms of each word may be good for the sake of reproducibility and NLP sentiment analysis. Thank you for the package.