njtierney / syn

syn - the thesaurus
http://syn.njtierney.com/
51 stars 4 forks source link

get ant() to work #8

Open njtierney opened 5 years ago

njtierney commented 5 years ago

Current behaviour:

library(syn)

ant("good")
#> [1] "bad"  "evil"
ant("great")
#> character(0)
ant("strong")
#> [1] "weak"

# workaround - not quite perfect - as Mike pointed out, "good" is in there.
library(purrr)
syn("strong") %>% 
  ants() %>%
  flatten_chr() %>%
  sort() %>%
  unique()
#>   [1] "accentual"        "advance"          "ahead"           
#>   [4] "angular"          "antimagnetic"     "atonal"          
#>   [7] "atonic"           "attractive"       "back"            
#>  [10] "bad"              "beseeching"       "bounce"          
#>  [13] "caducous"         "cerebral"         "chronic"         
#>  [16] "close"            "closed"           "cloudy"          
#>  [19] "cold"             "compromising"     "consonant"       
#>  [22] "consonantal"      "contemptible"     "contrasty"       
#>  [25] "crooked"          "curly"            "curved"          
#>  [28] "dark"             "dead"             "defensive"       
#>  [31] "defensively"      "delicate"         "diluted"         
#>  [34] "disreputable"     "dissuasive"       "distant"         
#>  [37] "distributed"      "docile"           "dormant"         
#>  [40] "dull"             "easy"             "emotional"       
#>  [43] "empty"            "evil"             "extinct"         
#>  [46] "fair"             "flat"             "forceless"       
#>  [49] "fragrant"         "frail"            "fresh"           
#>  [52] "frivolous"        "front"            "gaseous"         
#>  [55] "geographic"       "good"             "gutless"         
#>  [58] "hard"             "hardened"         "heavy"           
#>  [61] "high"             "hollow"           "impotent"        
#>  [64] "inactive"         "incapable"        "incidental"      
#>  [67] "incompetent"      "inconclusive"     "inconsiderable"  
#>  [70] "indefinite"       "indistinct"       "ineffective"     
#>  [73] "inefficacious"    "inefficient"      "inexperienced"   
#>  [76] "inoffensive"      "inoffensively"    "inoperative"     
#>  [79] "insecure"         "insolvent"        "insubstantial"   
#>  [82] "invalid"          "irregular"        "irresolute"      
#>  [85] "lax"              "lean"             "lethargic"       
#>  [88] "light"            "liquid"           "loud"            
#>  [91] "low"              "low spirits"      "low-tension"     
#>  [94] "malodorous"       "mild"             "minimum"         
#>  [97] "moving"           "narrow"           "natural"         
#> [100] "negligent"        "nonalcoholic"     "noncomprehensive"
#> [103] "nonmagnetic"      "nonsyllabic"      "obtuse"          
#> [106] "odorless"         "offensive"        "on"              
#> [109] "opaque"           "open"             "passionless"     
#> [112] "passive"          "peripheral"       "poor"            
#> [115] "powerless"        "quantitative"     "quiet"           
#> [118] "rear"             "relax"            "relaxed"         
#> [121] "resistible"       "shallow"          "sharp"           
#> [124] "shut"             "silence"          "slow"            
#> [127] "small"            "smooth"           "soft"            
#> [130] "solid"            "spiritless"       "stative"         
#> [133] "stressed"         "strong"           "superficial"     
#> [136] "sweet"            "sweeten"          "tender"          
#> [139] "tense"            "thin"             "timid"           
#> [142] "unable"           "unaggressive"     "unanimated"      
#> [145] "unarticulated"    "unassertive"      "unbalanced"      
#> [148] "unclear"          "unconvincing"     "undedicated"     
#> [151] "undetermined"     "undynamic"        "uneager"         
#> [154] "unemotional"      "unenterprising"   "unenthusiastic"  
#> [157] "unimportant"      "unimpressive"     "uninfluential"   
#> [160] "unlikely"         "unmarked"         "unqualified"     
#> [163] "unreasonable"     "unsensational"    "unskilled"       
#> [166] "unsound"          "unsoured"         "unstable"        
#> [169] "unsteady"         "unstressed"       "untalented"      
#> [172] "untrained"        "unturned"         "unvoiced"        
#> [175] "unwieldy"         "veer"             "ventral"         
#> [178] "vocalic"          "vowel"            "weak"            
#> [181] "weightless"       "wide"             "widen"

Created on 2018-11-27 by the reprex package (v0.2.1)