pineapple fertile?

I seen some ladies say they eat pineapple during thete fertile window? what exactly does it do