This is the working area for the individual Internet-Draft, "Short Usage Preference Strings for Automated Processing".
This includes a simple Rust implementation, which can be used as follows:
use sup_ai::{UsagePreferences, UsagePreference::Allowed};
// Construct usage preferences with the default usages.
let mut up = UsagePreferences::default();
// An expression is a string or bytes, as dictated by the source.
// This might be sourced from robots.txt, an HTTP header, metadata, or anywhere.
let expression = "tdm=y,ai=n";
up.parse(expression);
// Evaluation determines whether the preference is to allow or deny the usage.
let result = up.eval("search", Allowed);
assert_eq!(result, Allowed);See the guidelines for contributions.
Contributions can be made by creating pull requests. The GitHub interface supports creating pull requests using the Edit (✏) button.
Formatted text and HTML versions of the draft can be built using make.
$ makeCommand line usage requires that you have the necessary software installed. See the instructions.