Should the Intersection function not be "how many token 'in common'" rather than just 'how many tokens'? Otherwise I'm missing something. Going to read the code for that function now, but in the article, that wasn't clicking for me.
edit: code was easier than expected, yes, its how many in common as its just using the python 'intersection' function.