Extract global SexInfo object and getPopularWords function to avoid deferred variable assignment nonsense