This WBI R package computes the Wasserstein Bipolarization Index, as described in Lee and Sobel (forthcoming in Annals of Applied Statistics).
You can install the development version of WBI from GitHub with:
# install.packages("devtools")
devtools::install_github("hanelee/WBI")