Skip to content
Python library for processing people requests for bot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ross
.gitignore
LICENSE
MANIFEST
README.md
setup.cfg
setup.py

README.md

Ross

Python library for processing people requests for bot based on regular expressions

Install

pip3 install ross

Usage

>>> import ross
>>> ross.process_message('How to cook a cake?')
{'subtype': 'search', 'action': 'question', 'type': 'recipes', 'query': 'cake'}
>>> ross.process_message('Is there starbucks not far?').query
'starbucks'

Data types

Recipes

subtype: search/recommend

query: name of dish

action: question/plan/request

Places

subtype: search/recommend

query: name of place, from cafe name to country name

action: question/plan/request

Translate

subtype: to_another_lang/to_user_lang

query: phrase to translate

language: if subtype == to_another_lang, language code for translation

You can’t perform that action at this time.