def unique(text):
    """
    Return an unique text

    @type text: str
    @param text: Text written used spin syntax.
    @return: An unique text

    # Generate an unique sentence
    >>> unique('The {quick|fast} {brown|gray|red} fox jumped over the lazy dog.')
    'The quick red fox jumped over the lazy dog'


    """

    # check if the text is correct
    correct, error = _is_correct(text)
    if not correct:
        raise Exception(error)

    s = []
    _all_unique_texts(text, s)
    return s[0]
Return an unique text

    @type text: str
    @param text: Text written used spin syntax.
    @return: An unique text

    # Generate an unique sentence
    >>> unique('The {quick|fast} {brown|gray|red} fox jumped over the lazy dog.')
    'The quick red fox jumped over the lazy dog'