# `semantic.name_case`

Name has the wrong case for its kind.

Area 1, [Project layout and modules](../topics/project-layout-and-modules.md); not declinable; the next step is usually the agent's.

```jadpo
type Stock = Int {
    min: 0
}

function orderTotal(subtotal: Stock) -> Stock {
    return subtotal
}
```

```text
error: Function `orderTotal` isn't written in lower_snake_case
 --> checkout.jadpo:5:10
  |
5 | function orderTotal(subtotal: Stock) -> Stock {
  |          ^^^^^^^^^^ should be `order_total`
  reason: Types, entities and route groups are written in UpperCamelCase; functions, actions, queries, fields, variables and the rest in lower_snake_case.
  next: Rename `orderTotal` to `order_total`, here and where it's used (agent)
  rule: semantic.name_case
  help: https://jadpo.dev/docs/errors/semantic.name_case

check failed: 1 error, 1 file
```
