Примеры
Map an API property to a database-column style
Ввод
createdAtExpected answer
created_at- Попытка быть контекстно осведомленным
Off
Separate an acronym from the next word
HTTP is treated as one word.
Ввод
HTTPResponseCodeExpected answer
http_response_code- Попытка быть контекстно осведомленным
Off
Normalize a measurement heading containing a number
The digit 2 forms its own word boundary; inspect the exact output before adopting a schema name.
Ввод
CO2 concentration ppmExpected answer
co_2_concentration_ppm- Попытка быть контекстно осведомленным
Off
Deburr a city name for a plain ASCII identifier
The original diacritics are removed.
Ввод
São Paulo stationExpected answer
sao_paulo_station- Попытка быть контекстно осведомленным
Off
Rename bare tokens while retaining a quoted key
Context mode protects double-quoted text; review real code with its parser before applying replacements.
Ввод
firstName = "displayName"; maxRetries = 5;Expected answer
first_name = "displayName"; max_retries = 5;- Попытка быть контекстно осведомленным
On
To Snake case (dumb)
Ввод
hello worldExpected answer
hello_world- Попытка быть контекстно осведомленным
Off
To Snake case (smart)
Ввод
test='hello'
echo $test
aSnakeCaseFunction
$aSnakeCaseVariable;
function functionName() {
console.log('things inside quotes do not get broken');
console.log("things inside quotes do not get broken");
}Expected answer
test='hello'
echo $test
a_snake_case_function
$a_snake_case_variable;
function function_name() {
console.log('things inside quotes do not get broken');
console.log("things inside quotes do not get broken");
}- Попытка быть контекстно осведомленным
On
Параметры
| Параметр | Значение по умолчанию | Ввод и варианты |
|---|---|---|
| Попытка быть контекстно осведомленным | false | Включено или выключено |