Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

start project

  • Loading branch information...
commit a19c59c0f9afb90fb89e7ef66745aac78c641c8e 0 parents
@txus authored
8 .gitignore
@@ -0,0 +1,8 @@
+/pom.xml
+*jar
+/lib
+/classes
+/native
+/.lein-failures
+/checkouts
+/.lein-deps-sum
18 Readme.md
@@ -0,0 +1,18 @@
+# clojureshtein
+
+Clojureshtein is a small library that calculates similarity between two
+strings calculating their Levenshtein distance.
+
+Really? It's just a way to learn Clojure by implementing a simple algorithm I
+learned at Stanford's [Natural Language Processing](http://nlp-class.org)
+class :)
+
+## Usage
+
+...
+
+## License
+
+Copyright (C) 2012 Josep M. Bach (Txus)
+
+Distributed under the Eclipse Public License, the same as Clojure.
4 project.clj
@@ -0,0 +1,4 @@
+(defproject clojureshtein "0.0.1-SNAPSHOT"
+ :description "Calculate the Levenshtein distance (similarity) between two strings."
+ :dependencies [[org.clojure/clojure "1.3.0"]]
+ :dev-dependencies [[org.clojars.ibdknox/lein-nailgun "1.1.1"]])
13 src/clojureshtein/core.clj
@@ -0,0 +1,13 @@
+(ns clojureshtein.core)
+
+(defn levenshtein [a, b]
+ (println "hello world")
+ true)
+
+(let
+ [x [[1,2,3],
+ [4,5,6],
+ [7,8,9]]]
+
+ (println (str "hey" x))
+ )
6 test/clojureshtein/test/core.clj
@@ -0,0 +1,6 @@
+(ns clojureshtein.test.core
+ (:use [clojureshtein.core])
+ (:use [clojure.test]))
+
+(deftest hello
+ (is 5 (levenshtein "hello" "hola")))
Please sign in to comment.
Something went wrong with that request. Please try again.