Skip to content

Commit 9fa7e71

Browse files
authored
Dev (#30)
### Bug fixes + Fix missing filename in the output of nsca-lca
1 parent 1f8dfd2 commit 9fa7e71

File tree

6 files changed

+29
-12
lines changed

6 files changed

+29
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<div align="center"><h1>Changelog</h1></div>
22

3+
## [0.0.49](https://github.com/tanloong/neosca/releases/tag/0.0.48) (19 August 2023)
4+
5+
### Bug fixes
6+
7+
+ Fix missing filename in the output of nsca-lca
8+
39
## [0.0.48](https://github.com/tanloong/neosca/releases/tag/0.0.48) (19 August 2023)
410

511
### New features
@@ -8,7 +14,7 @@
814

915
## [0.0.47](https://github.com/tanloong/neosca/releases/tag/0.0.47) (18 August 2023)
1016

11-
### Buf fixes
17+
### Bug fixes
1218

1319
+ Re-calculate values of structures defined by value_source after '+' operation
1420
+ Check empty key/value when loading custom config file

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ BibTeX
414414

415415
```BibTeX
416416
@misc{tan2022neosca,
417-
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.48},
417+
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.49},
418418
author = {Long Tan},
419419
howpublished = {\url{https://github.com/tanloong/neosca}},
420420
year = {2022}
@@ -429,7 +429,7 @@ year = {2022}
429429
APA (7th edition)
430430
</summary>
431431

432-
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.48) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
432+
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.49) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
433433

434434
</details>
435435

@@ -439,7 +439,7 @@ APA (7th edition)
439439
MLA (9th edition)
440440
</summary>
441441

442-
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.48, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
442+
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.49, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
443443

444444
</details>
445445

@@ -495,6 +495,7 @@ If you used the lexical complexity analyzing feature, please cite Xiaofei's arti
495495
BibTeX
496496
</summary>
497497

498+
```BibTeX
498499
@article{xiaofei2012relationship,
499500
author = {Xiaofei Lu},
500501
title = {The Relationship of Lexical Richness to the Quality of ESL Learners' Oral Narratives},
@@ -505,6 +506,8 @@ pages = {190-208},
505506
doi = {https://doi.org/10.1111/j.1540-4781.2011.01232\_1.x},
506507
year = {2012}
507508
}
509+
```
510+
508511
</details>
509512

510513
<details>

README_zh_cn.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ BibTeX
404404

405405
```BibTeX
406406
@misc{tan2022neosca,
407-
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.48},
407+
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.49},
408408
author = {Long Tan},
409409
howpublished = {\url{https://github.com/tanloong/neosca}},
410410
year = {2022}
@@ -419,7 +419,7 @@ year = {2022}
419419
APA (7th edition)
420420
</summary>
421421

422-
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.48) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
422+
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.49) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
423423

424424
</details>
425425

@@ -429,7 +429,7 @@ APA (7th edition)
429429
MLA (9th edition)
430430
</summary>
431431

432-
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.48, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
432+
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.49, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
433433

434434
</details>
435435

@@ -485,6 +485,7 @@ MLA (9th edition)
485485
BibTeX
486486
</summary>
487487

488+
```BibTeX
488489
@article{xiaofei2012relationship,
489490
author = {Xiaofei Lu},
490491
title = {The Relationship of Lexical Richness to the Quality of ESL Learners' Oral Narratives},
@@ -495,6 +496,8 @@ pages = {190-208},
495496
doi = {https://doi.org/10.1111/j.1540-4781.2011.01232\_1.x},
496497
year = {2012}
497498
}
499+
```
500+
498501
</details>
499502

500503
<details>

README_zh_tw.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ BibTeX
404404

405405
```BibTeX
406406
@misc{tan2022neosca,
407-
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.48},
407+
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.49},
408408
author = {Long Tan},
409409
howpublished = {\url{https://github.com/tanloong/neosca}},
410410
year = {2022}
@@ -419,7 +419,7 @@ year = {2022}
419419
APA (7th edition)
420420
</summary>
421421

422-
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.48) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
422+
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.49) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
423423

424424
</details>
425425

@@ -429,7 +429,7 @@ APA (7th edition)
429429
MLA (9th edition)
430430
</summary>
431431

432-
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.48, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
432+
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.49, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
433433

434434
</details>
435435

@@ -485,6 +485,7 @@ MLA (9th edition)
485485
BibTeX
486486
</summary>
487487

488+
```BibTeX
488489
@article{xiaofei2012relationship,
489490
author = {Xiaofei Lu},
490491
title = {The Relationship of Lexical Richness to the Quality of ESL Learners' Oral Narratives},
@@ -495,6 +496,8 @@ pages = {190-208},
495496
doi = {https://doi.org/10.1111/j.1540-4781.2011.01232\_1.x},
496497
year = {2012}
497498
}
499+
```
500+
498501
</details>
499502

500503
<details>

neosca/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python3
22
# -*- coding=utf-8 -*-
33

4-
__version__ = "0.0.48"
4+
__version__ = "0.0.49"

neosca/lca/lca.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ def run_on_ifiles(self, ifiles: List[str]):
322322
for ifile in ifiles:
323323
values = self.run_on_ifile(ifile)
324324
if values is not None:
325-
csv_writer.writerow(map(lambda v: round(v, 4), values))
325+
values = [round(v, 4) for v in values]
326+
values.insert(0, ifile)
327+
csv_writer.writerow(values)
326328

327329
handle.close()
328330

0 commit comments

Comments
 (0)