Wrote `f_period_lit_comparisons()` and supporting code.

It's not, like, completely done, but it's stable for now! :D