Breakdown of Ma nem a parkba megyek, hanem a könyvtárba.
Questions & Answers about Ma nem a parkba megyek, hanem a könyvtárba.
Hungarian word order strongly reflects emphasis (focus).
The element immediately before the verb is the focus of the sentence.
- Ma nem a parkba megyek, hanem a könyvtárba.
→ The focus is on a parkba (the destination).
→ Meaning nuance: It’s not the park that I’m going to today, but the library.
Compare with:
- Ma nem megyek a parkba, hanem otthon maradok.
→ Focus is on megyek (the action of going).
→ Meaning: Today I’m not going to the park at all, instead I stay at home.
So in your sentence, nem directly negates the place phrase a parkba, not the action of going itself. That’s why nem comes right before the focused phrase + verb:
nem a parkba megyek.
Yes, you can, and the meaning is very close, but the emphasis is slightly different.
Ma nem a parkba megyek, hanem a könyvtárba.
→ Emphasis on which place you go to (park vs. library).
→ Nuance: Today my destination is not the park but the library.Ma nem megyek a parkba, hanem a könyvtárba megyek.
→ Emphasis more on the whole action of going to the park vs. going to the library.
→ Nuance: Today I’m not going to the park; instead I’m going to the library.
In everyday speech, both are perfectly natural. The first version is slightly more focused on contrasting the two places; the second sounds more like contrasting two different complete actions. For communication, they’re effectively equivalent here.