When communicating in Chinese you may often make mistakes using Chinese grammar like:
False:
从前有一家里姓王。
Cóngqián yǒu yì jiā lǐ xìng Wáng
True:
从前有一家姓王。
Cóngqián yǒu yì jiā xìng Wáng.
“家里”表示范围。它和“王”不是同一关系,不能搭配。可以改“家里”为“家”。“家”是婚姻和血统关系为基础的社会单位。
家里 shows sphere and does not mathc with 王. One should substitute 家里 with 家 which stands for the social unit based on marriage and blood relationship.