---
title: Function Names Verb-Noun
impact: LOW
impactDescription: makes code self-documenting
tags: naming, functions, readability, conventions, quality, kotlin
---

## Function Names Verb-Noun

Functions do things. Action verbs make purpose clear. In Kotlin, use camelCase for function names and ensure they start with a verb.

**Incorrect (vague names):**

```kotlin
fun user() { }           // Noun only
fun userData() { }       // Noun only
fun doSomething() { }    // Vague
fun handleStuff() { }    // Vague
fun manager() { }        // Noun only
```

**Correct (action verbs):**

```kotlin
fun getUser() { }
fun createUserAccount() { }
fun validateEmailFormat() { }
fun calculateTotalPrice() { }
fun sendConfirmationEmail() { }
fun convertCurrencyToUSD() { }
```

**Verb categories:**

| Category | Verbs |
|----------|-------|
| Retrieval | `get`, `fetch`, `find`, `load`, `query` |
| Creation | `create`, `build`, `make`, `generate` |
| Modification | `set`, `update`, `modify`, `change` |
| Deletion | `delete`, `remove`, `destroy`, `clear` |
| Validation | `validate`, `verify`, `check`, `ensure` |
| Computation | `calculate`, `compute`, `parse`, `format` |
| Boolean | `is`, `has`, `can`, `should`, `will` |

**Tools:** PR review, detekt, Android Studio Linter
