You are here: PSPad forum > English discussion forum > Where is the option in PSPad?

Where is the option in PSPad?

Goto Page: 1 2 3 Next

#1 Where is the option in PSPad?

Posted by: maki | Date: 2019-04-26 09:17 | IP: IP Logged

Where is the option in PSPad:
Count sentences.

Do not confuse with:
-Number of characters
-Number of words

Options: Reply | Quote | Up ^


#2 Re: Where is the option in PSPad?

Posted by: pspad | Date: 2019-04-26 09:28 | IP: IP Logged

Hello

There is nothing like number of sentences.
Nobody wanted it yet. But on the first look it can be complicated, because grmatics in languages is different. Plus chapters names, lists in text e.t.c.

PSPad offers you possibility to extend his functionalitu using scripting - VBScript and JScript are part of Windows. Scripting is described in the help.

Options: Reply | Quote | Up ^


#3 Re: Where is the option in PSPad?

Posted by: pspad | Date: 2019-04-26 09:34 | IP: IP Logged

Examples:

This is a chapter title
Here continues some text.

vs

Here is some sentence where
Peter loads his gun.

In example 1 there are 2 sentences.
In example 2 there is only one sentece. How can program recognize difference?

Options: Reply | Quote | Up ^


#4 Re: Where is the option in PSPad?

Posted by: maki | Date: 2019-04-26 10:21 | IP: IP Logged

pspad smiling smiley

Sentences <end with '.','?' or '!'>.

Now you know, so tell me how to calculate it?

Edited 1 time(s). Last edit at 2019-04-26 10:21 by maki.

Options: Reply | Quote | Up ^


#5 Re: Where is the option in PSPad?

Posted by: pspad | Date: 2019-04-26 10:33 | IP: IP Logged

maki:
pspad smiling smiley

Sentences <end with '.','?' or '!'>.

Now you know, so tell me how to calculate it?

Use regular expressions, search for sentence ending chars and use count button in search dialog.

Options: Reply | Quote | Up ^


#6 Re: Where is the option in PSPad?

Posted by: maki | Date: 2019-04-26 14:11 | IP: IP Logged

From what I know, I do not need any regular expressions.
You can do it in some SIMPLE or EXTRA Online editor (on some page) , but too big text to paste in and you do not know if it's private!

But it is not easy PSPad Editor - as it seems to you. There are not even any examples of how to do it.

You can add this similar feature???
countwordsworth.com

0 clichésAPPROX.
0 characters
0 words per sentence (avg)
0 letters per word
0 sentences
0 alphanumeric characters
0 prepositionsAPPROX.
0 paragraphs
0 articles
0 words per paragraph
0 letters per sentence
0 syllables per sentenceAPPROX.
0 syllables per wordAPPROX.
0 syllables, totalAPPROX.
0 letters, total
0 words, total
0 printed pages (Paperback)
0 printed pages (A4)
0 "to be" verbs
0 pauses
0 words between pauses
0 syllables between pauses
0 pauses per sentence
0 pronounsBETA
0 contractionsBETA
0 similesBETA
0 max sentence length (words)
0 min sentence length (words)
0 questions
0 question:sentence ratio
0 unique words

Edited 5 time(s). Last edit at 2019-04-26 14:19 by maki.

Options: Reply | Quote | Up ^


#7 Re: Where is the option in PSPad?

Posted by: pspad | Date: 2019-04-26 14:29 | IP: IP Logged

If more users will find it usefull, I will include it

Options: Reply | Quote | Up ^


#8 Re: Where is the option in PSPad?

Posted by: Andreas | Date: 2019-04-26 22:26 | IP: IP Logged

IMHO there's no need for such a function. Even programs that are build especially for writing like writer or word do not have such an option.

If someone wants to analyze text in special ways he has to ask for a solution in a forum for e.g. JavaScript or PHP. Then he can write a script to do his analysis within pspad.

Options: Reply | Quote | Up ^


#9 Re: Where is the option in PSPad?

Posted by: maki | Date: 2019-04-27 21:22 | IP: IP Logged

Well, you have to deal with yourself, or assume topics in other different forums. At the beginning of the topic I asked for a quite simple function, which if not in PSPad, look for it in another editor.
Nothing special, just a regular expression and a counter. It's just that in another editor, for example, it shows 4 sentences (correctly), and in PSPad 5 sentences (wrong!) etc. I do not go into details because I will not argue about the function, stability and speed.

Options: Reply | Quote | Up ^


#10 Re: Where is the option in PSPad?

Posted by: pspad | Date: 2019-04-28 05:38 | IP: IP Logged

Maki. As usually from simple function is very long list of text analyse functions
Your simple request - count sentences isn't exact, cause count of name of chapter is sentence too. Items in the list are sentences too.
Your idea (sentence ends with sme chars) will work only for you and only in some languages. For others it will be unaccurate and they will request changes. And changes will break your sentence counting.
Use scripting and write simple script, which will count sentences for you or add another counting from your analyse.

Options: Reply | Quote | Up ^


Goto Page: 1 2 3 Next





Editor PSPad - freeware editor, © 2001 - 2019 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR