https://github.com/gottfrois/ex_text
Collection of text algorithms for Elixir
https://github.com/gottfrois/ex_text
algorithms elixir string
Last synced: 10 months ago
JSON representation
Collection of text algorithms for Elixir
- Host: GitHub
- URL: https://github.com/gottfrois/ex_text
- Owner: gottfrois
- Created: 2017-02-04T15:47:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-04T16:02:53.000Z (over 9 years ago)
- Last Synced: 2025-08-17T01:48:57.652Z (10 months ago)
- Topics: algorithms, elixir, string
- Language: Elixir
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExText
A collection of text algorithms for Elixir.
## Installation
Add `ex_text` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:ex_text, "~> 0.1.0"}]
end
```
Run
```
mix deps.get
```
## Usage
### Simon White algorithm
Simon White algorithm computes the similarity between two strings s1 and s2 as
twice the number of character pairs that are common to both strings divided by
the sum of the number of character pairs in the two strings.
More information can be found [here](http://www.catalysoft.com/articles/StrikeAMatch.html).
```elixir
iex> ExText.WhiteSimilarity.similarity("Healed", "Sealed")
0.8
```