"""The unbound method is the builtin ``str`` by origin, not by its spelling.

The four calls of ``builtin`` are reports: the builtin under another name is still ``str``. A parameter or a local
binding named ``str`` is another object, whose first argument is no separator, and ``others`` cuts with another
receiver or at ``/``: none of them is a report.
"""

from builtins import str as text


def builtin(ref):
    return str.split(ref, "#"), text.rpartition(ref, "#"), text.split(ref, sep="#"), ref.split("#")


def parameter(str, ref):
    return str.split(ref, "#")


def local(ref):
    str = type(ref)
    return str.partition(ref, "#")


def others(ref, other):
    return other.split(ref, "#"), str.split(ref, "/"), ref.index("/")
