---
title: "currentRevision(for:)"
framework: naturallanguage
role: symbol
role_heading: Type Method
path: "naturallanguage/nlmodelconfiguration/currentrevision(for:)"
---

# currentRevision(for:)

Returns the current Natural Language framework version in the OS.

## Declaration

```swift
class func currentRevision(for type: NLModel.ModelType) -> Int
```

## Return Value

Return Value A version number.

## See Also

### Accessing the configuration

- [language](naturallanguage/nlmodelconfiguration/language.md)
- [revision](naturallanguage/nlmodelconfiguration/revision.md)
- [supportedRevisions(for:)](naturallanguage/nlmodelconfiguration/supportedrevisions(for:).md)
- [type](naturallanguage/nlmodelconfiguration/type.md)
- [NLModel.ModelType](naturallanguage/nlmodel/modeltype.md)
