Questions & Answers about Hablar un idioma extranjero es muy útil.
Why does the sentence start with the infinitive hablar instead of a gerund like hablando for the word speaking?
In English, we often use the -ing form when an action is the subject of a sentence. In Spanish, you must always use the infinitive (the unconjugated verb ending in -ar, -er, or -ir) when a verb acts as a noun. Using hablando here as the subject would be completely incorrect.
Why is it un idioma if idioma ends in an a? Shouldn't it be feminine?
It looks feminine, but idioma is actually a masculine noun, which is why it uses the masculine article un. Many Spanish words that end in -ma and have Greek origins, such as el problema, el sistema, and el clima, are masculine. You just have to memorize them as exceptions.
Why does útil have a written accent mark over the u?
The accent mark tells us where to put the stress when pronouncing the word. By default, Spanish words ending in a consonant other than n or s have their natural stress on the very last syllable. Because the spoken stress in útil falls on the second-to-last syllable instead, it needs a written accent mark to break the normal pronunciation rule.