<jupyter_start><jupyter_text>Example usageTo use `pycount_mi` in a project:<jupyter_code>import pycount_mi

print(pycount_mi.__version__)<jupyter_output>0.1.0<jupyter_text>**Imports**<jupyter_code>from pycount_mi.pycount_mi import count_words
from pycount_mi.plotting import plot_words<jupyter_output><empty_output><jupyter_text>**Create a text file** Text file based on an Einstein quote.<jupyter_code>quote = "Insanity is doing the same thing over and over and \
             expecting different results."
with open("../tests/einstein.txt", "w") as file:
        file.write(quote)<jupyter_output><empty_output><jupyter_text>**Count words**Count of the number of occurances of a word after removing the punctuation using `count_words()`<jupyter_code>counts=count_words("../tests/einstein.txt")
print(counts)<jupyter_output>Counter({'over': 2, 'and': 2, 'insanity': 1, 'is': 1, 'doing': 1, 'the': 1, 'same': 1, 'thing': 1, 'expecting': 1, 'different': 1, 'results': 1})<jupyter_text>**Plot words**Plot using the `plot_words()` function:<jupyter_code>fig=plot_words(counts,n=5)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1437613019891501, 'fraction_numerical': 0.013562386980108499, 'mean_word_length': 7.515384615384615, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '35918', 'license': 'MIT', 'n_tokens_mistral': 417, 'n_tokens_neox': 393, 'n_words': 87, 'path': 'docs/example.ipynb', 'repo_name': 'miyer26/pycount_mi', 'size': '1106'}