---
title: "tokenRangeAtIndex:"
framework: naturallanguage
role: symbol
role_heading: Instance Method
path: "naturallanguage/nltokenizer/tokenrangeatindex:"
---

# tokenRangeAtIndex:

Finds the range of the token at the given index.

## Declaration

```occ
- (NSRange) tokenRangeAtIndex:(NSUInteger) characterIndex;
```

## Return Value

Return Value The range of the token at the given location.

## See Also

### Enumerating the tokens

- [enumerateTokensInRange:usingBlock:](naturallanguage/nltokenizer/enumeratetokensinrange:usingblock:.md)
- [tokensForRange:](naturallanguage/nltokenizer/tokensforrange:.md)
- [tokenRangeForRange:](naturallanguage/nltokenizer/tokenrangeforrange:.md)
