aleph.text

aleph.text.match_form(text)

Turn a string into a form appropriate for name matching.

The goal of this function is not to retain a readable version of the given string, but rather to yield a normalised version suitable for comparisons and machine analysis.

aleph.text.sanitize_html(html_text)

Remove anything from the given HTML that must not show up in the UI.