Breakdown of Esos comportamientos se penalizan por afectar gravemente a los demás.
a
personal a (marks a person object)
ese
that (m.sg., also esa, esos, esas, eso)
se
one, people (impersonal)
los demás
the others, the rest
Questions & Answers about Esos comportamientos se penalizan por afectar gravemente a los demás.
Why does this sentence use por afectar instead of translating 'for affecting' as por afectando?
In English, we use the -ing form after prepositions, but in Spanish, you must always use the infinitive after a preposition. Here, the structure por + infinitive acts as a causal infinitive, meaning 'because of affecting' or 'due to affecting'.
Would it be wrong to use para afectar here?
Why is se penalizan in the plural, and could I say son penalizados instead?
Se penalizan is the passive se structure, and it is plural because it must agree with the subject receiving the action, esos comportamientos. You could grammatically say son penalizados (the true passive), but the passive se is much more natural and common in everyday Spanish when you don't say who is doing the action.
Why do we need the preposition a in a los demás?