Improve SV name for language spoken
e.g., https://datacommons.org/tools/statvar#Count_Person_5OrMoreYears_ChineseSpokenAtHome implies it is population of chinese, but it is population who speak chinese
Hi @pradh, I’m a CS student interested in contributing to Data Commons. I’ve looked into this issue regarding the ambiguity of SV names like ChineseSpokenAtHome.
The current naming implies an ethnicity (Chinese) rather than the action or attribute (Speaking the language). To make this more semantically accurate and 'explainable' for data users, I propose we move toward a more explicit property-based naming convention.
Proposed Change:
Instead of: Count_Person_..._ChineseSpokenAtHome
We could use: Count_Person_...LanguageSpokenAtHome_Chinese or Count_Person..._SpeakChineseAtHome
This clearly separates the Population Type (Person) from the Attribute (Language Spoken).
Before I start looking for the relevant MCF files to submit a PR, I wanted to ask the maintainers:
1.Is there a preferred 'verb-first' convention (e.g., SpeakLanguage_...) we should be following? 2.Should we maintain the old DCIDs as aliases to avoid breaking existing queries, or is a full migration preferred for this schema improvement?
Looking forward to your guidance!"
I have tracked the ambiguous names to the generated MCF files in the schema repo. Could you point me to the source script or config file that generates gen_ordered_list_for_topics.mcf so I can apply the fix there?
@ajaits @hareesh-ms might be able to help!
Hi @ajaits and @hareesh-ms , thank you for the tags! I've been exploring the schema repo and noticed the files like gen_ordered_list_for_topics.mcf are marked as autogenerated. I am excited to help resolve these naming ambiguities. Could you point me to the source script or configuration where should I apply the changes so they propagate correctly to the generated MCFs.