<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/InflectionRule/canInflect(language:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation14InflectionRuleO10canInflect8languageSbSS_tFZ"
  },
  "title" : "canInflect(language:)"
}
-->

# canInflect(language:)

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

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

## Parameters

`language`

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

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)