diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Revision history for phonetic-languages-rhythmicity
+
+## 0.1.0.0 -- 2020-10-08
+
+* First version. Released on an unsuspecting world.
diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2020 OleksandrZhabenko
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Languages/Rhythmicity.hs b/Languages/Rhythmicity.hs
new file mode 100644
--- /dev/null
+++ b/Languages/Rhythmicity.hs
@@ -0,0 +1,61 @@
+-- |
+-- Module      :  Languages.Rhythmicity
+-- Copyright   :  (c) OleksandrZhabenko 2020
+-- License     :  MIT
+-- Stability   :  Experimental
+-- Maintainer  :  olexandr543@yahoo.com
+--
+-- Allows to evaluate (approximately, so better to say, to estimate) the
+-- rhythmicity metrices for the text (usually, the poetic one).
+
+{-# LANGUAGE BangPatterns #-}
+
+module Languages.Rhythmicity where
+
+maxPosition2 :: (RealFrac a) => [a] -> a
+maxPosition2 xs
+ | null xs = 0.0
+ | otherwise = let !mx2 = maxP22 xs 0.0 in if mx2 == 0.0 then 2.0 * abs (maxP21 xs 0.0) else abs (maxP21 xs 0.0 / mx2)
+     where maxP2 [t, u]
+            | compare t u == LT = 1.0
+            | otherwise = -1.0
+           maxP2 xs = 0.0
+           maxP21 (x:y:xs) !acc1 = maxP21 xs (maxP2 [x,y] + acc1)
+           maxP21 _ !acc1 = acc1
+           maxP22 (x:y:xs) !acc1 = maxP22 (y:xs) (maxP2 [x,y] + acc1)
+           maxP22 _ !acc1 = acc1
+
+posMaxIn3
+  :: (Ord a) => a
+  -> a
+  -> a
+  -> Int
+posMaxIn3 x y z = let !mx = max (max x y) z in
+  case mx of
+   x -> 1
+   y -> 2
+   _ -> 3
+
+maxPosition3 :: RealFrac a => [a] -> a
+maxPosition3 xs
+  | null xs = 0.0
+  | length xs `rem` 3 == 0 = 3.0 * go (h xs) (0.0, 0.0, 0.0)
+  | otherwise = go xs (0.0, 0.0, 0.0)
+      where h (x:y:z:ys) = posMaxIn3 x y z:h ys
+            h _ = []
+            go [] (!acc21,!acc22,!acc23) = if acc21 > max acc22 acc23 then acc21 else if acc22 > max acc21 acc23 then acc22 else acc23
+            go (x:zs) (!acc21,!acc22,!acc23) = go zs (h1 x (acc21,acc22,acc23))
+            h1 !x (!t,!u,!w)
+              | x == 1 = (t + 1.0, u, w)
+              | x == 2 = (t, u + 1.0, w)
+              | otherwise = (t,u,w + 1.0)
+
+evalRhythmicity23 :: (RealFrac a, Floating a) => [a] -> a
+evalRhythmicity23 xs = maxPosition2 xs ** 2.0 + maxPosition3 xs ** 2.0
+
+evalRhythmicity23K
+  :: (RealFrac a, Floating a) => a
+  -> a
+  -> [a]
+  -> a
+evalRhythmicity23K k2 k3 xs = k2 * maxPosition2 xs ** 2.0 + k3 * maxPosition3 xs ** 2.0
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/phonetic-languages-rhythmicity.cabal b/phonetic-languages-rhythmicity.cabal
new file mode 100644
--- /dev/null
+++ b/phonetic-languages-rhythmicity.cabal
@@ -0,0 +1,26 @@
+-- Initial phonetic-languages-rhythmicity.cabal generated by cabal init.
+-- For further documentation, see http://haskell.org/cabal/users-guide/
+
+name:                phonetic-languages-rhythmicity
+version:             0.1.0.0
+synopsis:            Allows to estimate the rhythmicity metrices for the text (usually, the Ukrainian poetic one)
+description:         Allows to estimate (somewhat to say, evaluate) the rhythmicity metrices for the text (usually, the Ukrainian poetic one, but it can be extrapolated to other ones). Inspired by the ancient Greek and Latin poetry.
+
+homepage:            https://hackage.haskell.org/package/phonetic-languages-rhythmicity
+license:             MIT
+license-file:        LICENSE
+author:              OleksandrZhabenko
+maintainer:          olexandr543@yahoo.com
+copyright:           Oleksandr Zhabenko
+category:            Language,Math,Data,Game
+build-type:          Simple
+extra-source-files:  CHANGELOG.md
+cabal-version:       >=1.10
+
+library
+  exposed-modules:     Languages.Rhythmicity
+  -- other-modules:
+  other-extensions:    BangPatterns
+  build-depends:       base >=4.7 && <4.15
+  -- hs-source-dirs:
+  default-language:    Haskell2010
