Extract SexInfo::filterPopularWords function