+1 voto
444 vistas

Hi,
How to calculate number of words in chapter or in one book. It should not include marking.

Publicación antigua - se muestra en su idioma original
Paratext por (241 puntos)
mostrada de nuevo | 444 vistas

3 Respuestas

0 votos
Mejor respuesta

Here is some regex that will do a similar thing in RegexPal:
(?<=(\\(?!(b|c|cp|f|fr|id\w*|jmp|periph|rem|toc\d|usfm|v|vp|x|xo)\s)\+?\w+[\s\*]|[cv]\s+\S+\s))[^\\]*?(?=\\|\Z):::\S+
Use Count (CTRL-O) to find all the words in a an entire project down to a single book.This will give you more words but it is probably more accurate. The Wordlist excludes numbers and words in certain reference fields like \r \ior and sometimes \xt which may not need to be checked for spelling, but should probably be included in a word count.

Detail
This is an explanation of the regex:
The first part is a context where you want to count words. It excludes markers as well as chapter and verse numbers: (?<=(\\(?!(b|c|cp|f|fr|id\w*|jmp|periph|rem|toc\d|usfm|v|vp|x|xo)\s)\+?\w+[\s\*]|[cv]\s+\S+\s)[^\\]*?(?=\\|\Z):::

  • It includes a list of markers whose contents you probably do not want counted:
    (?!(b|c|cp|f|fr|id\w*|jmp|periph|rem|toc\d|usfm|v|vp|x|xo)\s)
  • This part excludes chapter numbers and verse numbers: [cv]\s+\S+\s

The second part \S+ simply finds text separated by spaces. Since it is greedy it will find text up to a space, end of string, or end of file.

Publicación antigua - se muestra en su idioma original
por (1,8k puntos)
mostrada de nuevo
0 votos
Here is a quick way to get a count of any selection (based on Word List options) of verse, chapter, section, book, or books. You use Excel to get the full count.
Here is a Quick Tip video: https://www.loom.com/share/21b31bb8bf37492695e1b27589f75f43?sid=60a34a28-7f27-44ec-a9e3-dcbcbc33de86
Publicación antigua - se muestra en su idioma original
por (9,9k puntos)
editado por
0 votos

Thank you so much anon848905 exactly I want like this, I tried by Regex \w+ but it did not give exactly value.

Publicación antigua - se muestra en su idioma original
por (241 puntos)

Preguntas relacionadas

0 votos
1 respuesta 272 vistas
Como usuario, me gustaría saber cuántas palabras hay en un libro o libros en particular.
Phil_Leckrone 9,9k preguntada feb 8, 2024
0 votos
0 respuestas 172 vistas
(anon451647 writes) This line (in PrintDraftChanges.txt) will change a plus sign to a thin space if it has a non- ... not match them (especially if they are non-Roman letters).
anónimo preguntada abr 10, 2015
0 votos
0 respuestas 182 vistas
To move a book from one difficulty level to another, see either of the following: [How do I change the expected rate ... /520) (the Change the difficulty level of a book section)
[Expert]
anon421222
735
preguntada feb 23, 2017
0 votos
3 respuestas 279 vistas
Hello, Anytime I use the \ip Introduction - Paragraph marker in Paratext, the words turns grey. I would be grateful if you can help me correct it. Thank you. anon878803
anon878803 132 preguntada nov 8, 2019
+1 voto
1 respuesta 341 vistas
Al traducir 1 Reyes 7, queremos usar fracciones cuando expresamos el número con cifras, por ejemplo, en 7:10: ... . Hay alguna configuración adicional que haya pasado por alto?
JohnBrownie 385 preguntada oct 16, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Make every effort to keep the unity of the Spirit through the bond of peace.
Ephesians 4:3
3,045 preguntas
6,005 respuestas
5,671 comentarios
2,026 usuarios