<commit_before># string-class
```
Support for string manipulation in javascript
The String class is extended using prototype
```

## List of methods (Extends **String** Class)
-  [hasVowels](#vw)
-  [toUpper](#tup)
-  [toLower](#tlo)
-  [ucFirst](#ucf)
-  [isQuestion](#que)
-  [words](#wd)
-  [wordCount](#wdc)
-  [toCurrency](#tcur)
-  [fromCurrency](#fcur)


### <a name = "vw"></a>hasVowels
```
Returns true if the string contains any of the vowel letter _a, e, i, o, u_
e.g ('String class extended').hasVowels() equals `true`
```

### <a name = "tup"></a>toUpper
```
Converts string characters to uppercases
e.g ("String class extended").toUpper() equals `"STRING CLASS EXTENDED"`
```

### <a name = "tlo"></a>toLower
```
Converts string characters to lowercases
e.g ("STRING CLASS EXTENDED").toLower() equals `"string class extended"`
```

### <a name = "ucf"></a>ucFirst
```
Converts the first string characters to uppercase, and the rest to lowercases
e.g ('string class extended').ucFirst() equals `"String class extended"`
```

### <a name = "que"></a>isQuestion
```
Returns true if the string represensts a question i.e end with a `?` mark
e.g ("String class extended?").isQuestion() equals `true`
```

### <a name = "wd"></a>words
```
Returns an array of words in the string  (words are assumed to be separated by spaces)
e.g ('String class extended').words() equals `["String", "class", "extended"]`<commit_msg>readme(doc): add reference for word definition<commit_after># string-class
```
Support for string manipulation in javascript
The String class is extended using prototype
```

## List of methods (Extends **String** Class)
-  [hasVowels](#vw)
-  [toUpper](#tup)
-  [toLower](#tlo)
-  [ucFirst](#ucf)
-  [isQuestion](#que)
-  [words](#wd)
-  [wordCount](#wdc)
-  [toCurrency](#tcur)
-  [fromCurrency](#fcur)


### <a name = "vw"></a>hasVowels
```
Returns true if the string contains any of the vowel letter _a, e, i, o, u_
e.g ('String class extended').hasVowels() equals `true`
```

### <a name = "tup"></a>toUpper
```
Converts string characters to uppercases
e.g ("String class extended").toUpper() equals `"STRING CLASS EXTENDED"`
```

### <a name = "tlo"></a>toLower
```
Converts string characters to lowercases
e.g ("STRING CLASS EXTENDED").toLower() equals `"string class extended"`
```

### <a name = "ucf"></a>ucFirst
```
Converts the first string characters to uppercase, and the rest to lowercases
e.g ('string class extended').ucFirst() equals `"String class extended"`
```

### <a name = "que"></a>isQuestion
```
Returns true if the string represensts a question i.e end with a `?` mark
e.g ("String class extended?").isQuestion() equals `true`
```

### <a name = "wd"></a>words
```
Returns an array of words in the string  (words are assumed to only consist of alphabets, apostrophe and hyphen)
e.g ('String class extended').words() equals `["String", "class", "extended"]`
{'fraction_non_alphanumeric': 0.1802545579635363, 'fraction_numerical': 0.0, 'mean_word_length': 4.922606924643585, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7669184', 'n_tokens_mistral': 1010, 'n_tokens_neox': 953, 'n_words': 325}