def getStatusCode(statusWord):
    """Returns the status code from the status word. """
    try:
        return ['ordered', 'wished', 'owned'].index(statusWord)
    except ValueError:
        return -1