stevecondylios / dictionaRy

An R interface to the English Dictionary
Other
6 stars 0 forks source link

Ensure URL completion on audio works for words with multiple meanings #5

Closed stevecondylios closed 2 years ago

stevecondylios commented 2 years ago

Currently:


a <- define("bark")
a$phonetics <- a$phonetics %>% as.vector
sapply(a$phonetics, function(x) { x[[2]]} )
[1] "https://ssl.gstatic.com/dictionary/static/sounds/20200429/bark--_gb_1.mp3"
[2] "//ssl.gstatic.com/dictionary/static/sounds/20200429/bark--_gb_1.mp3"      
[3] "//ssl.gstatic.com/dictionary/static/sounds/20200429/bark--_gb_1.mp3"      
[4] "//ssl.gstatic.com/dictionary/static/sounds/20200429/barque--_gb_1.mp3" 

They should all start with https: (not just the first one).