https://oneruby.dev/building-a-bayesian-text-classifier-in-ruby-from-scratch/