diff --git a/packages/better-write-app/src/components/editor/project/statistics/base/EditortProjectStatisticsWord.vue b/packages/better-write-app/src/components/editor/project/statistics/base/EditortProjectStatisticsWord.vue
index 8a84ccb03..b44dc24b3 100644
--- a/packages/better-write-app/src/components/editor/project/statistics/base/EditortProjectStatisticsWord.vue
+++ b/packages/better-write-app/src/components/editor/project/statistics/base/EditortProjectStatisticsWord.vue
@@ -13,7 +13,7 @@
@@ -57,7 +57,7 @@
const PROJECT = useProjectStore()
- const chapter = ref(PROJECT.pages[0].title)
+ const chapter = ref(PROJECT.pages[0].entities[0].raw)
const project = useProject()
const { t } = useI18n()
@@ -77,7 +77,7 @@
const onSet = () => {
const target = PROJECT.pages.filter(
- (page) => page.title === chapter.value
+ (page) => page.entities[0].raw === chapter.value
)[0]
const result = project.utils().getWordOccurrences(target, state.min)
diff --git a/packages/better-write-app/src/use/project.ts b/packages/better-write-app/src/use/project.ts
index a5904361c..a2e922d0d 100644
--- a/packages/better-write-app/src/use/project.ts
+++ b/packages/better-write-app/src/use/project.ts
@@ -269,7 +269,11 @@ export const useProject = () => {
const getChapterAllCharacters = (page: ContextState): number => {
return page.entities.reduce(
- (sum, val) => sum + (isValidType(val) ? val.raw.length : 0),
+ (sum, val) =>
+ sum +
+ (isValidType(val) && raw.v2().normalize(val.raw)
+ ? raw.v2().normalize(val.raw)!.length
+ : 0),
0
)
}
@@ -358,7 +362,7 @@ export const useProject = () => {
const getWordOccurrences = (page: ContextState, min: number = 0) => {
const map = page.entities
.filter((entity) => isValidType(entity))
- .reduce((map, value) => {
+ .reduce((map: any, value: any) => {
const normalize = raw.v2().normalize(value.raw)
if (!normalize) return
diff --git a/packages/better-write-localisation/src/en-US/editor.ts b/packages/better-write-localisation/src/en-US/editor.ts
index 308c09a4b..56f8115a2 100644
--- a/packages/better-write-localisation/src/en-US/editor.ts
+++ b/packages/better-write-localisation/src/en-US/editor.ts
@@ -401,7 +401,7 @@ export default {
statistics: {
global: 'Global',
characters: 'Characters',
- impact: 'Impact by Chapter',
+ impact: 'Estimated Reading Time',
letters: 'Letters',
words: 'Words',
repeated: 'Repeated Words',
diff --git a/packages/better-write-localisation/src/pt-BR/editor.ts b/packages/better-write-localisation/src/pt-BR/editor.ts
index a6dc6110d..f015c131a 100644
--- a/packages/better-write-localisation/src/pt-BR/editor.ts
+++ b/packages/better-write-localisation/src/pt-BR/editor.ts
@@ -402,7 +402,7 @@ export default {
statistics: {
global: 'Global',
characters: 'Caracteres',
- impact: 'Impacto por CapĂtulo',
+ impact: 'Tempo de Leitura Estimado',
letters: 'Letras',
words: 'Palavras',
repeated: 'Palavras Repetidas',