“Male” and “female” may be appropriate as nouns when the age range is quite broad or ambiguous and everyone in the group identifies as male or female or when used to identify a transgender person (e.g., “assigned female at birth” is correct, not “assigned girl at birth”).