replace boolean values with lowercase string equivalents
add tf() and term_frequency functions