This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Python Spintax parser | |
This module provides an efficient spintax parser where every possible spuns have the same probability. | |
Given a masterspin you can get the total number of possible spuns or a randomly chosen spun. | |
""" |