Concerning Thailand, tax residency is defined solely by the total number of days a visitor is staying in Thailand per year. If living less than 180 days, he/she is not a Thai tax resident.
Even if married, you never will be listed in blue house book (called "tabian baan" by the way ทะเบียนบ้าน). Instead you will be listed in the yellow house book only.