<filename>osspeak/recognition/actions/context.py
import log
import recognition.actions.library.stdlib
from recognition.actions import library

class RecognitionContext:

    def __init__(self, variables, words, namespace):
        self.variables = variables
        self.namespace = namespace
        self.argument_frames = []
        self.words = words
        self.text = None if words is None else ' '.join(words)

def empty_recognition_context():
    ns = recognition.actions.library.stdlib.namespace.copy()
    return RecognitionContext([], [], ns)
<filename>osspeak/recognition/actions/context.py
import log
import recognition.actions.library.stdlib
from recognition.actions import library

class RecognitionContext:

    def __init__(self, variables, words, namespace):
        self.variables = variables
        self.namespace = namespace
        self.argument_frames = []
        self.words = words
        self.text = None if words is None else ' '.join(words)

def empty_recognition_context():
    ns = recognition.actions.library.stdlib.namespace.copy()
    return RecognitionContext([], [], ns)