The module Moss is an OCaml client for the MOSS (Measure Of Software Similarity) plagiarism detection service. It is based on the original submission script. The MOSS system only runs on Stanford's servers — you cannot run your own instance — so you need to obtain an account first.
The easiest way to install the library is to use OPAM:
opam install moss
To compile by hand, install dune and do
dune build @install.
See the interface of Moss.