---
title: "init(rawValue:)"
framework: Natural Language
role: symbol
role_heading: Initializer
platforms: [iOS 12.0+, iPadOS 12.0+, Mac Catalyst 13.0+, macOS 10.14+, tvOS 12.0+, visionOS 1.0+, watchOS 5.0+]
path: "naturallanguage/nlscript/init(rawvalue:)"
---

# init(rawValue:)

Creates a language script with the given string as its raw value.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: The string value you specify.

## See Also

### Creating custom script tags

- [init(_:)](naturallanguage/nlscript/init(_:).md)
