jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
255 stars 25 forks source link

Is there any way to add license data? #53

Closed soimsoim closed 4 years ago

soimsoim commented 4 years ago

This tool is really fast and nice. Is there any way to add license data? Can this extracts the copyright text?

jpeddicord commented 4 years ago

Thanks!

Is there any way to add license data?

Sure is. If you're using the API: https://docs.rs/askalono/0.4.2/askalono/struct.Store.html#method.add_license

If you're using the command-line tool, it only knows how to load a dataset from the SPDX license-list-data repository:

Load an SPDX license directory (see https://github.com/spdx/license-list-data/tree/master/json/details for format)

USAGE:
    askalono cache load-spdx [FLAGS] <DIR>

FLAGS:
    -h, --help       Prints help information
        --store      Store texts in cache along with match data
    -V, --version    Prints version information

ARGS:
    <DIR>    JSON "details" directory

It could learn to do more; I've just never quite prioritized that work myself. Open to options.

Can this extracts the copyright text?

askalono does not know how to do this at the moment, but I see you asked about this in #54 -- let's scope that there.

soimsoim commented 4 years ago

Thank you for your kind answer. This question is solved so I closed this issue.

I look forward to the function for copyright text #54 .

Thanks and regards, Soim