Original: In some ferns the default sex is hermaphrodite, but ferns which grow in soil that has previously supported hermaphrodites are influenced by residual hormones to instead develop as male.
Simplified: In some ferns the default sex is hermaphrodite. Ferns which grow in soil which has previously supported hermaphrodites are influenced by hormones remaining to develop as male.