Skip to content

Commit 4cd8177

Browse files
Merge branch 'fixDetectionProblems-841' into 'main'
Detecta padrões com ligatura See merge request softwares-pkp/plugins_ojs/verificacao-metadados-documento!32
2 parents fc76973 + 4675624 commit 4cd8177

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

classes/DocumentChecker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ private function checkOrcid($text)
7979
["conflictos", "de", "intereses"],
8080
["conflictos", "de", "interés"],
8181
["conflicts", "of", "interests"],
82+
["conflict", "of", "interests"],
8283
["competing", "interests"],
84+
["conflito", "de", "interesses"],
8385
["conflitos", "de", "interesses"],
8486
["Não","","conflito","de","interesses"],
8587
];

tests/ConflictInterestTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
class ConflictInterestTest extends DetectionOnDocumentTest
77
{
8-
private $patternConflict = array("conflicts", "of", "interests");
8+
private $patternConflict = ["conflicts", "of", "interests"];
9+
private $patternConflictLigature = ["conflito", "de", "interesses"];
910

1011
public function setUp(): void
1112
{
@@ -19,6 +20,13 @@ public function testDetection(): void
1920
$this->assertEquals("Success", $this->documentChecker->checkConflictInterest());
2021
}
2122

23+
public function testDetectionLigature(): void
24+
{
25+
$this->documentChecker->words = $this->insertWordsIntoDocWordList($this->patternConflictLigature, $this->documentChecker->words);
26+
27+
$this->assertEquals("Success", $this->documentChecker->checkConflictInterest());
28+
}
29+
2230
public function testDoesntDetectWhenNotPresent(): void
2331
{
2432
$this->assertEquals("Error", $this->documentChecker->checkConflictInterest());

version.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<version>
1313
<application>contentAnalysis</application>
1414
<type>plugins.generic</type>
15-
<release>2.2.3.0</release>
16-
<date>2025-09-17</date>
15+
<release>2.2.3.1</release>
16+
<date>2025-10-14</date>
1717
<lazy-load>1</lazy-load>
1818
<class>ContentAnalysisPlugin</class>
1919
</version>

0 commit comments

Comments
 (0)