The TextAnalizer is a simple ultility for text analitics, your especiality is translate some text to other text.
Using "translater" tool
Changing "foo" to "bar" on the text "foo bar":
$ echo "foo bar"| translater 'foo: bar'
bar bar
The space(' ') after the ':' token is needed on translater.
Or changing "foo%complement&" to "%complement&bar"
$ echo "foosomething"| translater '"foo%complement&": "%complement&bar"'
somethingbar
Using "getter" tool
Or if you want search emails on any text using a regex ".{1,}@.{1,}":
$ echo "j@gmail.com
person@site.net
some text to try confuse the getter
email@g.com" | getter ".{1,}@.{1,}"
j@gmail.com
person@site.net
email@g.com
Or getting just the username of emails:
$ echo "j@gmail.com
person@site.net
some text to try confuse the getter
email@g.com" | getter "%username:.{1,}&@.{1,}" -t "%username&"
j
person
email
To install the textanalyzer is just take this in a terminal:
$ pip install git+http://github.com/RoboCopGay/TextAnalyzer --user && getter -h > /dev/null && if [[ "$?"==0 ]];then echo 'TextAnalyzer are installed!!';fi
If your want learn more about the TextAnalyzer is just enter on TextAnalyzerDocs.