Here's your motherfucking TF-IDF function.
I'll fix it tomorrow.