Specializations > Morphosyntax

Syntactic Trees in your posts! [instructions]

<< < (2/2)

Nice, but I don't think I'm there yet lol.

[vP[DP] [v' v [VP V [DP]]]]

How to avoid this \  which comes in whenever one type V'? Please help

That's a good question. Unfortunately the linguistics notation conflicts with a programming issue: apostrophes are automatically "escaped" with slashes by the server in order to prevent any attacks with malicious code.

There is probably a way around this, but I've looked into it just briefly, and I think it would require modifying PHP Syntax Tree's code directly (rather than how I've integrated it), and I don't have the time to work that out at the moment (and I prefer to leave third-party plugins alone if possible). I may look into it again later-- it's a good question. Feel free to remind me if it keeps bugging you. If I get some time or want a project to take a break from other things, I might try it. It could be as simple as manually filtering out "\'" from the text that goes into the trees (very surface level, on the PHP Syntax Tree side of things), but the trick there would be finding the right line of code to do that, which is often the tricky part (finding, not fixing). This is actually a bug that should be fixed by PHP Syntax Tree in general (it's an unfortunate coincidence!). Could also try asking the developers about that if they are still working on the project.

Thanks for the feedback.

For now, I would say just go ahead with it as-is-- odd looking, but readable, not really ambiguous. Or you could use an alternative symbol like `.

Update/bug fix: I've now gone through the PHPSyntaxTree code and found where to fix this so it works with current server settings.

This change applies retroactively now so your tree above (for example) has v' displayed correctly, and it should work in the future.

Let me know if you find any more bugs!


[0] Message Index

[*] Previous page

Go to full version