コード例 #1
0
ファイル: weather.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    words = {word: ("weather", "noun") for word in NOUNS}
    
    paul.associate(words)
    paul.register("weather", process)
コード例 #2
0
ファイル: settings.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    words = {
        "set": ("settings", "verb"),
        "switch": ("settings", "verb"),
        "turn": ("settings", "verb"),
        "enable": ("settings", "verb"),
        "disable": ("settings", "verb"),
        "change": ("settings", "verb"),
        "begin": ("settings", "verb"),
        "start": ("settings", "verb"),
        "stop": ("settings", "verb"),
        "verbose": ("settings", "noun"),
        "verbosity": ("settings", "noun"),
        "debug": ("settings", "noun"),
        "debugging": ("settings", "noun"),
        "noisy": ("settings", "noun"),
        "noisiness": ("settings", "noun"),
        "talk": ("settings", "noun"),
        "talking": ("settings", "noun"),
        "settings": ("settings", "noun"),
        "logging": ("settings", "noun"),
        "name": ("settings", "noun"),
        "call": ("settings", "verb"),
        "title": ("settings", "noun"),
    }
    
    paul.associate(words)
    paul.register("settings", process)
コード例 #3
0
ファイル: finder.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''

    words = {word: ("finder", "noun") for word in NOUNS}
    words.update({word: ("finder", "verb") for word in VERBS})
    
    paul.associate(words)
    paul.register("finder", process)
コード例 #4
0
ファイル: discover.py プロジェクト: aaronstockdill/PAUL
def main():
    """ The main function """
    VERBS.append(paul.get_search_engine().lower())
    words = {word: ("discover", "noun") for word in NOUNS}
    words.update({word: ("discover", "verb") for word in VERBS})

    paul.associate(words)
    paul.register("discover", process)
コード例 #5
0
ファイル: personality.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    NOUNS = KEYWORDS + GREETINGS + THANKS + FEELING + RANDOM
    
    words = {word: ("personality", "noun") for word in NOUNS}
    
    paul.associate(words)
    paul.register("personality", process)
コード例 #6
0
ファイル: controls.py プロジェクト: aaronstockdill/PAUL
def main():
    """ The main function """
    words = {}

    for word in VERBS + VERBS_UP + VERBS_DOWN:
        words[word] = ("controls", "verb")
    for word in NOUNS:
        words[word] = ("controls", "noun")

    paul.associate(words)
    paul.register("controls", process)
コード例 #7
0
ファイル: help.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    words = {
        "help": ("help", "verb"),
        "stuck": ("help", "verb"),
        "learn": ("help", "verb"),
    }
    
    paul.associate(words)
    paul.register("help", process)
コード例 #8
0
ファイル: email.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    words = {
        "check": ("email", "verb"),
        "email": ("email", "noun"),
        "read": ("email", "verb"),
        "message": ("email", "noun"),
    }
    
    paul.associate(words)
    paul.register("email", process)
コード例 #9
0
ファイル: loader.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    words = {
        "module": ("loader", "noun"),
        "function": ("loader", "noun"),
        "load": ("loader", "verb"),
        "reload": ("loader", "verb"),
        "relaunch": ("loader", "verb"),
        "restart": ("loader", "verb"),
        "reboot": ("loader", "verb"),
    }
    
    paul.associate(words)
    paul.register("loader", process)
コード例 #10
0
ファイル: wikipedia.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The Main function '''
    
    words = {
        "wikipedia": ("wikipedia", "noun"),
        "tell": ("wikipedia", "verb"),
        "research": ("wikipedia", "verb"),
        "define": ("wikipedia", "verb"),
        "search": ("wikipedia", "verb"),
        "about": ("wikipedia", "preposition"),
        "find": ("wikipedia", "verb"),
    }

    paul.associate(words)
    paul.register("wikipedia", process)
コード例 #11
0
ファイル: math.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    
    words = {
        "solve": ("math", "verb"),
        "substitute": ("math", "verb"),
        "rearrange": ("math", "verb"),
        "plus": ("math", "noun"),
        "minus": ("math", "noun"),
        "times": ("math", "noun"),
        "multiply": ("math", "verb"),
        "divide": ("math", "noun"),
        "power": ("math", "noun"),
        "root": ("math", "noun"),
        "square": ("math", "verb"),
    }
    
    words.update({word:("math", "noun") for word in NUMBER_WORDS()})
    
    paul.associate(words)
    paul.register("math", process)
コード例 #12
0
ファイル: clock.py プロジェクト: aaronstockdill/PAUL
def main():
    ''' The main function '''
    words = {word: ("clock", "noun") for word in NOUNS+DAYS+MONTHS}
    
    paul.associate(words)
    paul.register("clock", process)