Yet you have to register to vote, and this registration allows you to optionally declare which political party your affiliated with.
...which is the complete opposite to Sweden. We have a system similar to the Koseki in the article, but it is expressly illegal for any part of government to make a registry of people's political opinions or sexual orientation, or a bunch of other sensitive characteristics. I even think race is one such category.