---
title: "canInflect(language:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/inflectionrule/caninflect(language:)"
---

# canInflect(language:)

Returns a Boolean value that indicates whether the rule can inflect a given language.

## Declaration

```swift
static func canInflect(language: String) -> Bool
```

## Parameters

- `language`: The language to apply inflection to, specified as a BCP 47 language code.

## Return Value

Return Value true if the rule can inflect the given language; otherwise, false.

## See Also

### Determining Availability

- [canInflectPreferredLocalization](foundation/inflectionrule/caninflectpreferredlocalization.md)
