vs
QUICK ANSWER
"Yearn" is an intransitive verb which is often translated as "anhelar", and "long for" is an intransitive verb phrase which is often translated as "ansiar". Learn more about the difference between "yearn" and "long for" below.
yearn()
An intransitive verb is one that does not require a direct object (e.g., The man sneezed.).
1. (to desire)
a. anhelar
After months away, Nina yearned for home.Tras meses de ausencia, Nina anhelaba volver a casa.
b. ansiar
Eric yearns for the nighttime when he will once again be in the arms of his beloved.Eric ansía la noche, cuando estará una vez más en los brazos de su amada.
c. añorar
The hot summer sun makes me yearn for the Caribbean, where I lived for a while.El sol ardiente del verano me hace añorar el Caribe, donde viví un tiempo.
long for()
An intransitive verb phrase is a phrase that combines a verb with a preposition or other particle and does not require a direct object (e.g., Everybody please stand up.).
1. (to want)