---
title: "classification(forIdentifier:)"
framework: soundanalysis
role: symbol
role_heading: Instance Method
path: "soundanalysis/snclassificationresult/classification(foridentifier:)"
---

# classification(forIdentifier:)

Returns the classification for an identifier.

## Declaration

```swift
func classification(forIdentifier identifier: String) -> SNClassification?
```

## Parameters

- `identifier`: A sound classification label.

## Return Value

Return Value A sound classification with a corresponding identifier if it exists in the result; otherwise, nil.

## Discussion

Discussion The identifier parameter corresponds to the identifier property in an SNClassification.

## See Also

### Inspecting the Result

- [timeRange](soundanalysis/snclassificationresult/timerange.md)
- [classifications](soundanalysis/snclassificationresult/classifications.md)
- [SNClassification](soundanalysis/snclassification.md)
