data icon indicating copy to clipboard operation
data copied to clipboard

Improve SV name for language spoken

Open pradh opened this issue 4 years ago • 4 comments

e.g., https://datacommons.org/tools/statvar#Count_Person_5OrMoreYears_ChineseSpokenAtHome implies it is population of chinese, but it is population who speak chinese

pradh avatar Apr 07 '22 17:04 pradh

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!"

Manya56 avatar Mar 11 '26 15:03 Manya56

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?

Manya56 avatar Mar 26 '26 07:03 Manya56

@ajaits @hareesh-ms might be able to help!

pradh avatar Mar 26 '26 07:03 pradh

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.

Manya56 avatar Mar 26 '26 09:03 Manya56