<commit_before>![](splash.png)
# Swift String Tools
A String extension that allows you to do some very awesome functions efforlessly. 

###Functions
Function Name | Description 
--------------|------------
```var length``` | Length of String in Swift
```var objclength ``` | Length of NSString, similar to ```.length``` in NSString
```func detectLanguage() -> String! ```| Detects the language of a String.
```func detectScript() -> String!``` | Detects the script of a String.
```func isRightToleft() -> Bool ```| Checks the text direction of a given String.
```var isEmail``` | Checks if the String is an Email.
```func isOnlyEmptySpacesAndNewLineCharacters() ->Bool ```| Checks that a String is only made of white spaces, and new line characters.
```func isTweetable() -> Bool ``` | Checks that a String is 'tweetable'; can be used in a tweet.
```func getLinks() -> [String] ```| Gets an array of Strings for all links found in a String.
```func getURLs() -> [NSURL] ```| Gets an array of URLs for all links found in a String.
```func getDates() -> [NSDate] ```| Gets an array of dates for all dates found in a String
```func getHashtags() -> [String] ```| Gets an array of strings (hashtags #acme) for all links found in a String.
```func getMentions() -> [String] ```| Gets an array of strings (mentions @apple) for all mentions found in a String
```func containsDate() -> Bool ```| Checks if a String contains a Date in it.
```func containsLink() -> Bool ```| Checks if a String contains a link in it.
```func encodeToBase64Encoding() -> String ```| Encodes a String in Base64 encoding
```func decodeFromBase64Encoding() -> String ```| Decodes a Base64 encoded String


### License
String Tools is under MIT License. Check the license file for more information.


### Contact Info
follow me on twitter: [@jamal_2](https:///www.twitter.com/jamal_2)<commit_msg>fixed a type *hashtags<commit_after>![](splash.png)
# Swift String Tools
A String extension that allows you to do some very awesome functions efforlessly. 

###Functions
Function Name | Description 
--------------|------------
```var length``` | Length of String in Swift
```var objclength ``` | Length of NSString, similar to ```.length``` in NSString
```func detectLanguage() -> String! ```| Detects the language of a String.
```func detectScript() -> String!``` | Detects the script of a String.
```func isRightToleft() -> Bool ```| Checks the text direction of a given String.
```var isEmail``` | Checks if the String is an Email.
```func isOnlyEmptySpacesAndNewLineCharacters() ->Bool ```| Checks that a String is only made of white spaces, and new line characters.
```func isTweetable() -> Bool ``` | Checks that a String is 'tweetable'; can be used in a tweet.
```func getLinks() -> [String] ```| Gets an array of Strings for all links found in a String.
```func getURLs() -> [NSURL] ```| Gets an array of URLs for all links found in a String.
```func getDates() -> [NSDate] ```| Gets an array of dates for all dates found in a String
```func getHashtags() -> [String] ```| Gets an array of strings (hashtags #acme) for all hashtags found in a String.
```func getMentions() -> [String] ```| Gets an array of strings (mentions @apple) for all mentions found in a String
```func containsDate() -> Bool ```| Checks if a String contains a Date in it.
```func containsLink() -> Bool ```| Checks if a String contains a link in it.
```func encodeToBase64Encoding() -> String ```| Encodes a String in Base64 encoding
```func decodeFromBase64Encoding() -> String ```| Decodes a Base64 encoded String


### License
String Tools is under MIT License. Check the license file for more information.


### Contact Info
follow me on twitter: [@jamal_2](https:///www.twitter.com/jamal_2)
{'fraction_non_alphanumeric': 0.14938535542490647, 'fraction_numerical': 0.005344735435595938, 'mean_word_length': 4.257022471910112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7669321', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1040, 'n_words': 500}