/peer_review

Validates whether a given email, url, or domain belongs to a research institution.

Primary LanguageRubyMIT LicenseMIT

Peer Review

Gem Version Build Status

Like Gman, Peer Review extends Naughty Or Nice to validate whether a given email, url, or domain belongs to a research institution.

Usage

PeerReview.valid? `foo@nih.gov`       #=> true
PeerReview.valid? `http://sandia.gov` #=> true
PeerReview.valid? `github.com`        #=> false

Contributing

Peer Review just uses this simple file of domains to work out whether the email belongs to a research organization. For example - US National Labs:

//US National Labs
anl.gov
bnl.gov
fnal.gov
inl.gov
lanl.gov
lbl.gov
llnl.gov
nist.gov
ornl.gov
pnnl.gov
pppl.gov
sandia.gov
srnl.doe.gov
srs.gov
ameslab.gov

If you want to add new domains to this list then please open a pull request with the modifications to domains.txt and a brief explanation of your additions.