Skip to content

Commit

Permalink
Renamed package lev -> levenshtein
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-alrux committed Apr 12, 2016
1 parent 84e2e47 commit 3e941b9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Alrux Go EXTensions (AGExt) - package lev
Alrux Go EXTensions (AGExt) - package levenshtein
Copyright 2016 ALRUX Inc.

This product includes software developed at ALRUX Inc.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ This package implements distance and similarity metrics for strings, based on th

## Maturity

[![Build Status](https://travis-ci.org/agext/lev.svg?branch=master)](https://travis-ci.org/agext/lev)
[![Build Status](https://travis-ci.org/agext/levenshtein.svg?branch=master)](https://travis-ci.org/agext/levenshtein)

v1.1 Stable: Guaranteed no breaking changes to the API in future v1.x releases. No known bugs or performance issues. Probably safe to use in production, though provided on "AS IS" basis.

## Overview

[![GoDoc](https://godoc.org/github.com/agext/lev?status.png)](https://godoc.org/github.com/agext/lev)
[![GoDoc](https://godoc.org/github.com/agext/levenshtein?status.png)](https://godoc.org/github.com/agext/levenshtein)

The Levenshtein `Distance` between two strings is the minimum total cost of edits that would convert the first string into the second. The allowed edit operations are insertions, deletions, and substitutions, all at character (one UTF-8 code point) level. Each operation has a default cost of 1, but each can be assigned its own cost equal to or greater than 0.

Expand All @@ -25,9 +25,9 @@ The underlying `Calculate` function is also exported, to allow the building of o
## Installation

```
go get github.com/agext/lev
go get github.com/agext/levenshtein
```

## License

Package lev is released under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.
Package levenshtein is released under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.
4 changes: 2 additions & 2 deletions lev.go → levenshtein.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

/*
Package lev implements distance and similarity metrics for strings, based on the Levenshtein measure.
Package levenshtein implements distance and similarity metrics for strings, based on the Levenshtein measure.
The Levenshtein `Distance` between two strings is the minimum total cost of edits that would convert the first string into the second. The allowed edit operations are insertions, deletions, and substitutions, all at character (one UTF-8 code point) level. Each operation has a default cost of 1, but each can be assigned its own cost equal to or greater than 0.
Expand All @@ -25,7 +25,7 @@ The `Match` function provides a similarity metric, with the same range and meani
The underlying `Calculate` function is also exported, to allow the building of other derivative metrics, if needed.
*/
package lev
package levenshtein

// Calculate determines the Levenshtein distance between two strings, using
// the given costs for each edit operation. It returns the distance along with
Expand Down
2 changes: 1 addition & 1 deletion lev_test.go → levenshtein_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package lev
package levenshtein

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion params.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package lev
package levenshtein

// Params represents a set of parameter values for the various formulas involved
// in the calculation of the Levenshtein string metrics.
Expand Down
2 changes: 1 addition & 1 deletion params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package lev
package levenshtein

import (
"testing"
Expand Down

0 comments on commit 3e941b9

Please sign in to comment.