+1 voto
445 visualizações

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

Publicação antiga - exibida no idioma original
Paratext por (241 pontos)
reexibida | 445 visualizações

3 Respostas

0 votos
Melhor resposta

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.

Publicação antiga - exibida no idioma original
por (1,8k pontos)
reexibida
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
Publicação antiga - exibida no idioma original
por (9,9k pontos)
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.

Publicação antiga - exibida no idioma original
por (241 pontos)

Perguntas relacionadas

0 votos
1 resposta 272 visualizações
Como usuário, gostaria de saber quantas palavras há em um livro específico ou em vários livros.
Phil_Leckrone 9,9k perguntada Fev 8, 2024
0 votos
0 respostas 172 visualizações
(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 perguntada Abr 10, 2015
0 votos
0 respostas 182 visualizações
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
perguntada Fev 23, 2017
0 votos
3 respostas 279 visualizações
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 perguntada Nov 8, 2019
+1 voto
1 resposta 341 visualizações
Na tradução de 1 Reis 7, queremos usar frações quando apresentamos o número em algarismos, por exemplo, em ... números. Existe alguma configuração adicional que eu tenha perdido?
JohnBrownie 385 perguntada Out 16, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,045 perguntas
6,005 respostas
5,671 comentários
2,026 usuários