# `GSGlyph.category`

*Instance Property*

The broad classification used to interpret and organize the glyph.

## Declaration

```swift
var category: String? { get set }
```

```objc
@property (nonatomic, copy) NSString * category;
```

[See also `category` in the Python API](https://docu.glyphsapp.com/#GSGlyph.category)

```python
pyobjc_instanceMethods.category() -> str
pyobjc_instanceMethods.setCategory_(category: str)
```

## Discussion

Categories include letters, numbers, punctuation, marks, and symbols. This value is usually supplied by the Glyph Info Database. Set [`GSGlyph.storeCategory`](/Core/GlyphsCore/GSGlyph/storeCategory) to `YES` to persist a glyph-local override instead of deriving it from the glyph name.

## See Also

### Category & Subcategory

- [`GSGlyph.subCategory`](/Core/GlyphsCore/GSGlyph/subCategory) — The classification that refines [`GSGlyph.category`](/Core/GlyphsCore/GSGlyph/category).
- [`GSGlyph.storeCategory`](/Core/GlyphsCore/GSGlyph/storeCategory) — Whether [`GSGlyph.category`](/Core/GlyphsCore/GSGlyph/category) is stored as glyph-local glyph info.
- [`GSGlyph.storeSubCategory`](/Core/GlyphsCore/GSGlyph/storeSubCategory) — Whether [`GSGlyph.subCategory`](/Core/GlyphsCore/GSGlyph/subCategory) is stored as glyph-local glyph info.

