njtierney / syn

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

get syn() to work #7

Closed njtierney closed 5 years ago

njtierney commented 5 years ago

It's alive!

njtierney commented 5 years ago
library(syn)
#> Loading ~/syn.rds

syn("fun", 1)
#> [1] "function"
syn("fun", 10)
#>  [1] "sight gag"         "merriness"         "jestbook"         
#>  [4] "go"                "double entendre"   "blue story"       
#>  [7] "quip"              "creature comforts" "mock"             
#> [10] "teasing"
syn("hooray", 5)
#> [1] "hooray"        "applause"      "hallelujah"    "yell"         
#> [5] "shout hosanna"

syns(c("fun", "happy"), 5)
#> $fun
#> [1] "function"     "pleasure"     "fool"         "sick joke"   
#> [5] "make a funny"
#> 
#> $happy
#> [1] "of good comfort" "blithesome"      "just right"      "pleasant"       
#> [5] "exhilarated"

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