phonetic-languages-simplified-examples-array: Helps to create Ukrainian texts with the given phonetic properties.

[ Ukrainian, game, language, library, math, mit, phonetic-languages, program ] [ Propose Tags ]

Uses more functionality of the arrays and lists. The vector-related functionality is removed and this made the executables and libraries much more lightweight. Deal the Ukrainian as one of the phonetic languages. For the short introduction in English, please, refer to: https://functional-art.org/2020/papers/Poetry-OleksandrZhabenko.pdf. Since the version 0.3.0.0 the package has the multiple variations mode for lineVariantsG3 executable that allows to use modifications in the text, e. g. synonyms, paraphrases etc.


[Skip to Readme]
Versions [RSS] [faq] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.3.0.0, 0.4.0.0, 0.4.0.1, 0.4.1.0, 0.4.2.0, 0.5.0.0, 0.5.0.1, 0.6.0.0, 0.6.1.0, 0.6.2.0, 0.7.0.0, 0.8.0.0, 0.8.1.0, 0.9.0.0, 0.10.0.0, 0.10.1.0, 0.11.0.0, 0.11.0.1, 0.11.1.0, 0.11.2.0, 0.11.3.0, 0.12.0.0, 0.12.1.0 (info)
Change log CHANGELOG.md
Dependencies base (>=4.8 && <4.15), heaps (>=0.3.6.1 && <1), mmsyn2-array (>=0.1.1 && <1), parallel (>=3.2.0.6 && <4), phonetic-languages-constraints-array (>=0.1 && <1), phonetic-languages-filters-array (>=0.1 && <1), phonetic-languages-permutations-array (>=0.1 && <1), phonetic-languages-plus (>=0.2 && <1), phonetic-languages-rhythmicity (>=0.1.2 && <1), phonetic-languages-simplified-base (>=0.1 && <1), phonetic-languages-simplified-examples-common (>=0.1.1 && <1), phonetic-languages-simplified-properties-array (>=0.1.2 && <1), phonetic-languages-ukrainian-array (>=0.1 && <1), subG (>=0.4 && <1), ukrainian-phonetics-basic-array (>=0.1.2 && <1), uniqueness-periods-vector-stats (>=0.2.1 && <1) [details]
License MIT
Copyright (c) 2020-2021 Oleksandr Zhabenko
Author OleksandrZhabenko
Maintainer olexandr543@yahoo.com
Category Language, Math, Game
Home page https://hackage.haskell.org/package/phonetic-languages-simplified-examples-array
Uploaded by OleksandrZhabenko at 2021-01-27T21:43:54Z
Distributions NixOS:0.12.1.0
Executables propertiesTextG3, rewritePoemG3, lineVariantsG3
Downloads 4960 total (1905 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-01-27 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for phonetic-languages-simplified-examples-array-0.3.0.0

[back to package description]

The short (possibly) instruction how to use the programs of the package phonetic-languages-simplified-examples-array in Ukrainian is here:

https://web.archive.org/web/20210127214219/https://oleksandrzhabenko.github.io/uk/Instruction_phonetic-languages-simplified-examples-array-0.3.0.0.pdf

Since the version 0.2.0.0 there exist also comparative mode for the rewritePoemG3 executable. It allows to create from two files with the text variants the new one. For more information in Ukrainian, please, refer to the instruction above to the part of the rewritePoemG3 executable.

  • Examples of usage
  1. lineVariantsG3:

lineVariantsG3 [<whether print the values of the property(ies)> ]

or:

lineVariantsG3 [<whether print the values of the property(ies)> ]

More partucular example of the abovementioned one:

lineVariantsG3 10.0_1.2 yy2 садок вишневий коло хати хрущі над вишнями гудуть (the Ukrainian text here and further is from the Taras Shevchenko poem)

lineVariantsG3 10.0_1.2 5 5 1 2 04y садок вишневий коло хати хрущі над вишнями гудуть

lineVariantsG3 +M 02y 3 03y 3 y0 10 -M ++BL

lineVariantsG3 ++I ++BL 4.3_ +M 02y 3 0y 3 y0 20 y2 40 -M садок вишневий коло хати хрущі над вишнями гудуть

lineVariantsG3 +IF hello.txt -IF ++BL +M 02y 3 0y 3 04y 5 y0 40 y4 50 -M садок вишневий коло хати хрущі над вишнями гудуть

You can also use multiple variations mode to look at the synonyms, paraphrases etc.

For this, use instead of just the text as the last arguments the following special construction:

{ / / ... / }

with at least two variants inside the curly brackets. They will be processed in chain with the one variant of each and the possibility to choose at the end between these different ones, which finally results in a single line.

Please, remember that the program provides processing for every combination of the variations so if you specify too many of them (e. g. 3 variants of one word and 4 variants of the another one will lead to 3*4 = 12 variations possible), the processing while getting the final result can become longer than expected.

  1. propertiesTextG3:

propertiesTextG3 <control of printing the line of the text, too>

propertiesTextG3 <control of printing the line of the text, too> | distributionTexG

PowerShell -Command "propertiesTextG3 <control of printing the line of the text, too> | distributionTexG ”

propertiesTextG3 sadok0.txt +RTS -N --RTS s 1 0 +M y0 0y 02y 03y y2 y3 yyy -M

propertiesTextG3 sadok0.txt +RTS -N --RTS s 1 0 03y ++B | distributionTextG s 1 +W

propertiesTextG3 @n

  1. rewritePoemG3:

rewritePoemG3

rewritePoemG3 +C (all the files must be different and simultaneously the first two ones must exist already with some text, otherwise, the program gives no meaningful result).