Hi to all Ciao Prolog Users!
I am working on a project for creating a little HTTP server called Pillowcase. But I steped on a problem: I don't know of any library for processing text!
I want some predicates for spliting strings(for example: split_string("Hello word, how are you?", " ", ["Hello", "word,", "how", "are", "you?"] is true)), or extracting substrings, things like that.
As far as I searched, I just found some for processing lists, like append and so on.
So, I create some predicates for working with HTTP responses/request that may be useful for processing text in general as well. You can use it for searching the end of line, end of word, spliting strings.
The module is still under heavy development, but you can take a look at it at the Pillowcase project.
* If you know of any text processing library that I can use, please tell me! * If you want to add these predicates to your libraries/programs, there's no problem: has GPL license.
Pillowcase is working if you want to try it, is in a pre-alpha state, but the latest version works with a very simplistic HTTP request/responses.
Where to find these things:
* The module file is called "pc_text_processing.pl" * Go to the download area of the Pillowcase project: http://download.savannah.gnu.org/releases/pillowcase/pc_text_processing.pl * Find it at the Pillowcase source code.
* The Pillowcase project: https://savannah.nongnu.org/projects/pillowcase/ http://hg.savannah.gnu.org/hgweb/pillowcase/
Cheers!