Packages
cologne_phonetic_ex
1.0.0
Calculates and returns the "Cologne Phonetic" (Kölner Phonetik) code for the given string. It's the phonetic code for the German language.
Current section
Files
Jump to
Current section
Files
cologne_phonetic_ex
mix.exs
mix.exs
defmodule ColognePhoneticEx.MixProject do
@moduledoc """
**Cologne phonetics** (also Kölner Phonetik, Cologne process) is a phonetic
algorithm which assigns to words a sequence of digits, the phonetic code.
The aim of this procedure is that identical sounding words have the same code
assigned to them. The algorithm can be used to perform a similarity search
between words. For example, it is possible in a name list to find entries
like "Meier" under different spellings such as "Maier", "Mayer", or "Mayr".
The Cologne phonetics is related to the well known Soundex
phoneticalgorithm but is optimized to match the German language.
[de.wikipedia.org/wiki/Kölner_Phonetik](http://de.wikipedia.org/wiki/Kölner_Phonetik)
Copyright © 2018 Edwin Buehler. All rights reserved.
"""
use Mix.Project
def project do
[
app: :cologne_phonetic_ex,
version: "1.0.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
package: package(),
description: description(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.circle": :test,
],
deps: deps(),
# Docs
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[{:ex_doc, "~> 0.17", only: :dev, runtime: false},
{:credo, "~> 0.9.0-rc1", only: [:dev, :test]},
{:ex_dash, "~> 0.1.5", only: :dev},
{:inch_ex, "~> 0.5", only: [:dev, :test]},
{:excoveralls, "~> 0.7.5", only: :test},
{:ex_unit_notifier, "~> 0.1", only: :test},
{:mix_test_watch, "~> 0.2", only: :dev, runtime: false},
{:bunt, "~> 0.2.0", only: [:dev, :test]}
]
end
defp description do
"""
Calculates and returns the "Cologne Phonetic" (Kölner Phonetik) code for the given string.
It's the phonetic code for the German language.
"""
end
defp package do
# These are the default files included in the package
[
name: :cologne_phonetic_ex,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Edwin Bühler"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Fulnir/cologne_phonetic_ex"}
]
end
defp docs do
[
name: "ColognePhoneticEx",
main: "README",
formatters: ["html"],
source_url: "https://github.com/Fulnir/cologne_phonetic_ex",
extras: [
"README.md"
]
]
end
end