# Prose class

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class Prose
```

Utility class for various textual and linguistic operations.

## Methods

- [BreakIntoWords](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/breakintowords.md): (static) Break a phrase into word fragments. This method will split the phrase at all spaces, and attempt to break up words which exceed the maximum width into hyphenated chunks.
- [BreakWordsIntoLines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/breakwordsintolines.md): (static) Break a phrase into lines whose length doesn't exceed the maximum width. An attempt will be made to hyphenate words which exceed the limit.
- [ComposeSequence<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/composesequence.md): (static) Compose a symbol-separated list of values whose entire length does not exceed some character count.
- [ConvertWildcardToRegex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/convertwildcardtoregex.md): (static) Convert a wildcard pattern string into an equivalent regex notation. = any sequence. ? = any single character. # = any numeric sequence.
- [ConvertWildcardToRegexWithGroups](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/convertwildcardtoregexwithgroups.md): (static) Convert a wildcard pattern string into an equivalent regex notation with wildcard group capture. = any sequence. ? = any single character. # = any numeric sequence.
- [DefaultArticle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/defaultarticle.md): (static) Determines the default indefinite article (i.e. a/an) to use with this string. It may result in ungrammatical English as there exist irregular cases.
- [Distance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/distance.md): (static) Measure the distance between two strings.
- [GroupValues<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/groupvalues.md): (static) group a set of values based on their descriptions.
- [Interpolate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/interpolate.md): (static) Interpolate between two strings.
- [IsVariableName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/isvariablename.md): (static) Test to see whether a string is a valid variable name.
- [LabelSequence](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/labelsequence.md): (2 overloads, static) Create an endless labeling sequence of strings: A, B, C, ..., AA, AB, AC, ..., XUP, XUQ, ...
- [LargestSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/largestsize.md): (static) Measure the largest width and height amongst a collection of strings. Width and height are measured independently and may belong to different strings.
- [MaskCsCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/maskcscode.md): (2 overloads, static) Mask various ranges in a string representing C# style code.
- [MaskString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/maskstring.md): (static) Apply a set of masking patterns to a string.
- [MatchPenalty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/matchpenalty.md): (static) Compute the matching penalty for a string and a set of search keys. This function can be used to find the best match from a collection of strings using fuzzy matching.
- [Mode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/mode.md): (3 overloads, static) Finds the most common value in a collection of strings. Null strings are not included in the search, but empty ones are.
- [ModifyCasing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/modifycasing.md): (2 overloads, static) Change the casing of a string based on a boolean pattern.
- [Overlap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/overlap.md): (static) Create a string which has a varies symbol for each char location that differs between a collection of strings.
- [ParseKeyValueLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/parsekeyvalueline.md): (static) Parse a line of colon separated key value pairs.
- [PluralPhrasing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/pluralphrasing.md): (static) Create a formatted phrase based on a count integer.
- [ReadFromJson](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/readfromjson.md): (static) Read a value from a json string.
- [RemoveCsComments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/removecscomments.md): (static) Replace all C# style comments in a piece of code with whitespace.
- [RemoveFormators](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/removeformators.md): (static) Remove those parts of a text which are not helpful during searches. These include commas and other punctuation symbols as well as formator words such as 'the', 'or', 'as', 'is' etc.
- [SortAlphaNumeric](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/sortalphanumeric.md): (static) Sort a bunch of strings using alphanumeric comparisons.
- [SortAlphaNumericMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/sortalphanumericmap.md): (static) Sort a bunch of strings using alphanumeric comparisons.
- [Syllabify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/syllabify.md): (static) Break a text into syllables.
- [ToPlural](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/toplural.md): (static)
- [ToSentenceCase](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tosentencecase.md): (2 overloads, static) Upper case first non-whitespace character after every sentence terminator.
- [ToSubscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tosubscript.md): (static) Convert a string to subscript notation. This only works for digits (0-9), the plus and minus symbols and parenthesis. Do note that not all fonts support these subscript characters.
- [ToSuperscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tosuperscript.md): (static) Convert a string to superscript notation. This only works for digits (0-9), the plus and minus symbols and parenthesis. Do note that not all fonts support these superscript characters.
- [ToVariableName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tovariablename.md): (static) Turn a string into a valid variable name. This method applies VB/C# conventions, only alphanumeric chars and the underscore, provided the name doesn't begin with a digit. This method may return an empty string if all the characters are considered invalid, empty strings are not valid names and need to be handled separately.
- [ToWordCase](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/towordcase.md): (2 overloads, static) Upper case the first character of every word.
- [TryParseInteger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tryparseinteger.md): (static) Figure out whether a string contains an integer at a specific location.
- [TryParseIntegerSubscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tryparseintegersubscript.md): (static) Figure out whether a string contains a subscript integer at a specific location.
- [TryParseIntegerSuperscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tryparseintegersuperscript.md): (static) Figure out whether a string contains a subscript integer at a specific location.
- [TryParseNumber](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tryparsenumber.md): (2 overloads, static) Try and parse a number which occurs in a text.
- [TryParsePoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tryparsepoint.md): (static) Try and parse a set of coordinates from a text. Leading whitespace is ignored, and if the coordinates are surrounded by braces that will be taken into account.
- [UndoSubscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/undosubscript.md): (static) Convert all subscript characters into regular ones.
- [UndoSuperscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/undosuperscript.md): (static) Convert all superscript characters into regular ones.
- [WriteToJson](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/writetojson.md): (static) Add a name+value entry to an existing Json string.
