Skip to content
Browse files

start project

  • Loading branch information...
0 parents commit a19c59c0f9afb90fb89e7ef66745aac78c641c8e @txus committed
Showing with 49 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +18 −0 Readme.md
  3. +4 −0 project.clj
  4. +13 −0 src/clojureshtein/core.clj
  5. +6 −0 test/clojureshtein/test/core.clj
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")))

0 comments on commit a19c59c

Please sign in to comment.
Something went wrong with that request. Please try again.