Strings

One of the types of objects in Praat. Represents an ordered list of strings.

## Creation

The difficult way is to create a Strings object from a generic Praat text file (if there are non-ASCII symbols, use UTF-8 or UTF-16 format):

`"ooTextFile"
` `"Strings"
` `5 ! number of strings
` `"Hello"
` `"Goodbye"
` `"Auf wiedersehen"
` `"Tschüss"
` `"Arrivederci"
`

In this example, we see that a double quote within a string should be written twice; the fourth string will therefore be read as Tschüss. This file can be read simply with the generic Read from file... command from the Open menu.

An easier way is to use the special command Read Strings from raw text file.... The file can then simply look like this:

`Hello
` `Goodbye
` `Auf wiedersehen
` `Tschüss
` `Arrivederci
`

You can also create a Strings object from a folder listing or from some other objects:

  • Create Strings as file list...
  • Distributions: To Strings...
  • OTGrammar: Generate inputs...
  • OTGrammar & Strings: Inputs to outputs...

### Links to this page

- Create Strings as folder list...
- Create Strings from tokens...
- Index: To Permutation...
- OT learning 2.9. Output distributions
- OT learning 3.1. Data from a pair distribution
- OT learning 3.2. Data from another grammar
- OT learning 4. Learning an ordinal grammar
- OT learning 5. Learning a stochastic grammar
- OT learning 7. Learning from overt forms
- PairDistribution: To Stringses...
- Strings & Permutation: Permute strings
- Strings: To Distributions
- Strings: To Index
- Strings: To Permutation...
- WordList