Add bagofchars and bagofcharsd3 analyses.