Text this: Mate choice in fruit flies is rational and adaptive