knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of namsor
is to provide some functionality to use some endpoints
for namsor's name checking API service. One can use this to for retrieve
best estimations for a name's gender and/or ethnicity.
You can install the development version of namsor
like so:
require(remotes) remotes::install_github('SinanPolatoglu/namsor')
Obtain an API key via namsor.com
library(namsor) ## SET API KEY # Sys.setenv(NAMSOR_API_KEY='your api key')
Supported endpoints currently are
namsor_gender
namsor_origin
namsor_country
namsor_diaspora
Result in case of a succesful call will be as list with the retrieved output. For example:
str(namsor_origin('Sinan', 'Polatoglu'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.