def to_disk(self, path, **kwargs):
path = ensure_path(path)<EOL>path = path.with_suffix("<STR_LIT>")<EOL>srsly.write_jsonl(path, self.patterns)<EOL>
Save the entity ruler patterns to a directory. The patterns will be
        saved as newline-delimited JSON (JSONL).

        path (unicode / Path): The JSONL file to load.
        **kwargs: Other config paramters, mostly for consistency.
        RETURNS (EntityRuler): The loaded entity ruler.

        DOCS: https://spacy.io/api/entityruler#to_disk