Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts. Port of https://github.com/leereilly/swot
Switch branches/tags
Nothing to show
Clone or download
Latest commit 54a99eb Aug 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Initial commit Aug 17, 2018
domains Initial commit Aug 17, 2018
lib Ensure only one call site to PublicSuffix.registable_domain/1 Aug 18, 2018
test Initial commit Aug 17, 2018
.formatter.exs Initial commit Aug 17, 2018
.gitignore Initial commit Aug 17, 2018
.travis.yml Initial commit Aug 17, 2018
LICENSE Add license to package Aug 18, 2018
README.md Expand readme Aug 18, 2018
mix.exs Bump version Aug 18, 2018
mix.lock Initial commit Aug 17, 2018

README.md

SwotEx

Build Status Hex pm Hex Docs License

Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts.

This is a port of Swot See there for more information.

The list of valid domains is far from complete. If any are missing, please file a PR.

Installation

The package can be installed by adding swotex to your list of dependencies in mix.exs:

def deps do
  [
    {:swotex, "~> 1.0.0"}
  ]
end

Usage

iex> SwotEx.is_academic?("stanford.edu")
true

iex> SwotEx.is_academic?("lreilly@fadi.at")
true

iex> SwotEx.institution_name("stanford.edu")
"Stanford University"

iex> SwotEx.institution_name("lreilly@fadi.at")
"BRG Fadingerstraße Linz, Austria"

Documentation

The docs can be found at https://hexdocs.pm/swotex.

License

See LICENSE.