Variable name aliases
When creating a variable in the Crunch web UI, the automatically-generated alias for the variable is NOT an exact copy of the name of the variable. Instead, the variable name is transformed into the new variable alias according to the following steps:
- Normalize Unicode and transliterate it into ASCII
- Replace all non- a-zA-Z0-9 characters with a _ character and ensure that there are no more than one _ sequential characters
- Add a prefixing underscore (_) if there are any leading digits
- Truncate length to 30 characters
- Add a sequential digit suffix if it is needed to make the alias unique
Examples of transformed variables
Variable aliases are automatically generated only for variables created via the Crunch web UI. For variables created via Crunch web services, the alias supplied by the user continues to be used as-is and these standardization rules do not apply.
-
Variable name Transformed alias name Tier Combined, 18+ Tier_Combined_18 ç´ é£Ÿä¸»ä¹‰è€… Su_Shi_Zhu_Yi_Zhe 512 Tier Combined, 18+ _512_Tier_Combined_18 0 _0
Alias name conflicts
The following describes how naming conflicts are resolved.
Let's say that that the following alias names already exist within the Crunch system:
- Age
- Age2
- Age3
The following aliases would then be assigned by Crunch if you create one of the following variable names:
-
Variable name Transformed alias name Age Age4 (since Age is not available)
Age1 Age1 (since Age1 is available)
Age3 Age4 (since Age3 is not available)