miniutter 0.5.1.0 → 0.5.1.1
raw patch · 4 files changed
+8/−8 lines, 4 filesdep ~minimorph
Dependency ranges changed: minimorph
Files
- LICENSE +1/−1
- NLP/Miniutter/English.hs +1/−0
- miniutter.cabal +2/−3
- test/test-miniutter.hs +4/−4
LICENSE view
@@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2015-2019, Mikolaj Konarski+Copyright (c) 2015-2020, Mikolaj Konarski All rights reserved. Redistribution and use in source and binary forms, with or without
NLP/Miniutter/English.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE DeriveGeneric #-} -- | Simple English clause creation parameterized by individual words.+-- See the tests for example texts generated. module NLP.Miniutter.English ( Part(..), Person(..), Polarity(..), Irregular(..) , makeSentence, makePhrase, defIrregular, (<+>)
miniutter.cabal view
@@ -5,7 +5,7 @@ -- PVP summary:+-+------- breaking API changes -- | | +----- minor or non-breaking API additions -- | | | +--- code changes with no API change-version: 0.5.1.0+version: 0.5.1.1 synopsis: Simple English clause creation from arbitrary words description: This library helps in generating simple present tense English sentences from short, parametrized descriptions.@@ -20,7 +20,6 @@ bug-reports: https://github.com/Mikolaj/miniutter/issues license: BSD3 license-file: LICENSE-tested-with: GHC >= 7.8 && <= 8.6 data-files: LICENSE, README.md author: Mikolaj Konarski maintainer: Mikolaj Konarski <mikolaj.konarski@funktory.com>@@ -38,7 +37,7 @@ binary >= 0.6.3.0 && < 1, text >= 0.11.2.3 && < 2, containers >= 0.4.1 && < 1,- minimorph >= 0.2.0.0 && < 1+ minimorph >= 0.3.0.0 && < 1 if !impl(ghc >= 8.0) build-depends: semigroups == 0.18.*
test/test-miniutter.hs view
@@ -174,7 +174,7 @@ , tp [MU.Car1Ws 1 "blue dog"] "blue dog" , tp [MU.CarWs 1 "blue dog"] "1 blue dog" , tp [MU.Car1Ws 2 "blue elf"] "2 blue elves"- , tp [MU.CardinalWs 2 " dog "] "two dogs "+ , tp [MU.CardinalWs 2 " dog "] "two dogs " , tp [MU.CarAWs 3 "leaf"] "3 leaves" , tp [MU.CardinalAWs 0 "sheep"] "no sheep" , tp [MU.CardinalAWs 1 "sheep"] "a sheep"@@ -250,7 +250,7 @@ ]] "I, I, 31st and 17 and I and an 18th" , tp [MU.WWxW " and perhaps%" [" dog ", "", "%eagle."]]- " dog and perhaps% %eagle."+ " dog and perhaps% %eagle." ] testMakePhrasePossesive :: Test@@ -272,11 +272,11 @@ , tp [MU.Wown "We"] "Ours" , tp [MU.Wown "they"] "theirs" , tp [MU.WownW (MU.String "uncle") (MU.String "dog")] "uncle's dog"- , tp [MU.WownW " uncle " "dog"] " uncle's dog"+ , tp [MU.WownW " uncle " "dog"] " uncle's dog" , tp [MU.WownW "I" ""] "my" , tp [MU.WownW "" "dog"] "dog" , tp [MU.WownW "" ""] ""- , tp [MU.WownW " " " "] " "+ , tp [MU.WownW " " " "] " " , tp [MU.WownW "miss" "dog"] "miss' dog" , tp [MU.WownW "YQS" (MU.Cardinal 33)] "YQS' 33" , tp [MU.WownW "buzz" (MU.Ordinal 21)] "buzz's 21st"