使用例
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 | オンまたはオフ |